Repository: incubator-systemml
Updated Branches:
  refs/heads/master 20e33bbe8 -> eef34599e


[HOTFIX] Bugfix in setGPU method of MLContext


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/eef34599
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/eef34599
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/eef34599

Branch: refs/heads/master
Commit: eef34599e4539c158a250f70ef059f75854eb867
Parents: 20e33bb
Author: Niketan Pansare <npan...@us.ibm.com>
Authored: Tue Mar 7 22:58:46 2017 -0800
Committer: Niketan Pansare <npan...@us.ibm.com>
Committed: Tue Mar 7 22:58:46 2017 -0800

----------------------------------------------------------------------
 src/main/java/org/apache/sysml/api/mlcontext/MLContext.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/eef34599/src/main/java/org/apache/sysml/api/mlcontext/MLContext.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/api/mlcontext/MLContext.java 
b/src/main/java/org/apache/sysml/api/mlcontext/MLContext.java
index 4ef31c5..7d57065 100644
--- a/src/main/java/org/apache/sysml/api/mlcontext/MLContext.java
+++ b/src/main/java/org/apache/sysml/api/mlcontext/MLContext.java
@@ -424,7 +424,7 @@ public class MLContext {
         *                                      true if needs to be enabled, 
false otherwise
         */
        public void setGPU(boolean enable) {
-               this.gpu = true;
+               this.gpu = enable;
        }
 
        /**

Reply via email to