You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by ch...@apache.org on 2018/05/05 13:00:12 UTC

[3/4] incubator-singa git commit: SINGA-350 Error from python3 test

SINGA-350 Error from python3 test

update the conda build script to fix a bug in CUDNN_PATH check.


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

Branch: refs/heads/master
Commit: bd774b56c18c15ee690909102239fdc60f356bce
Parents: 2d25561
Author: Wang Wei <dc...@nus.edu.sg>
Authored: Thu May 3 22:36:23 2018 +0800
Committer: Wang Wei <dc...@nus.edu.sg>
Committed: Thu May 3 23:39:50 2018 +0800

----------------------------------------------------------------------
 tool/conda/build.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/bd774b56/tool/conda/build.sh
----------------------------------------------------------------------
diff --git a/tool/conda/build.sh b/tool/conda/build.sh
index baa7ac3..91a2f3b 100644
--- a/tool/conda/build.sh
+++ b/tool/conda/build.sh
@@ -24,10 +24,11 @@ export CMAKE_INCLUDE_PATH=$PREFIX/include:$CMAKE_INCLUDE_PATH
 export CMAKE_LIBRARY_PATH=$PREFIX/lib:$CMAKE_LIBRARY_PATH
 
 
-USE_CUDA=OFF
 if [ -z ${CUDNN_PATH+x} ]; then
+	USE_CUDA=OFF
+else
 	USE_CUDA=ON
-	cp $CUDNN_PATH/include $PREFIX/include 
+	cp -r $CUDNN_PATH/include $PREFIX/include 
 	cp -P $CUDNN_PATH/lib64/libcudnn.so* $PREFIX/lib/
 fi