You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2015/11/26 12:31:59 UTC

[2/6] incubator-singa git commit: SINGA-104 Add Context Class

SINGA-104 Add Context Class


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

Branch: refs/heads/master
Commit: 35de4f913e97c64dbf27ff37c999aaa5a3ce40f6
Parents: 771ff32
Author: seaok <se...@gmail.com>
Authored: Thu Nov 26 10:51:55 2015 +0800
Committer: seaok <se...@gmail.com>
Committed: Thu Nov 26 10:51:55 2015 +0800

----------------------------------------------------------------------
 Makefile.gpu | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/35de4f91/Makefile.gpu
----------------------------------------------------------------------
diff --git a/Makefile.gpu b/Makefile.gpu
index 2dc2a71..2fea3b2 100644
--- a/Makefile.gpu
+++ b/Makefile.gpu
@@ -57,6 +57,8 @@ CUCXXFLAGS := $(MSHADOW_FLAGS) -std=c++11 -G $(CUDA_ARCH) \
 ifeq ($(CUDA_DIR),)
 	MSHADOW_FLAGS := $(MSHADOW_FLAGS) -DCPU_ONLY
 	CXXFLAGS := $(CXXFLAGS) -DCPU_ONLY
+else
+	CXXFLAGS := $(CXXFLAGS) -DUSE_GPU
 endif
 
 # find user defined .proto file, and then compute the corresponding .h, .cc