From 9bb5b76f0e9050c9e18b7efb9b79788d8eceed8a Mon Sep 17 00:00:00 2001 From: Qing Date: Tue, 15 Jan 2019 10:48:27 -0800 Subject: [PATCH] fix the fetching GPU problem --- scala-package/deploy/pom.xml | 1 + scala-package/pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scala-package/deploy/pom.xml b/scala-package/deploy/pom.xml index c51aa9a92090..542bf6c16880 100644 --- a/scala-package/deploy/pom.xml +++ b/scala-package/deploy/pom.xml @@ -19,6 +19,7 @@ + ${project.parent.basedir}/.. mxnet-full_2.11-${platform}-${flavor} 1.5.0-SNAPSHOT apache.snapshots.https diff --git a/scala-package/pom.xml b/scala-package/pom.xml index 6665e953dcd1..d39075f2c99b 100644 --- a/scala-package/pom.xml +++ b/scala-package/pom.xml @@ -131,7 +131,7 @@ bash - -c 'mkdir -p ${project.build.directory}; if [[ $(ldd ${MXNET_DIR}/lib/libmxnet.so | grep libcuda.so | wc -l) == "0" ]]; then echo flavor=cpu > ${project.build.directory}/flavor.properties; else echo flavor=gpu > ${project.build.directory}/flavor.properties; fi' + -c 'mkdir -p ${project.build.directory}; if [[ $(ldd ${MXNET_DIR}/lib/libmxnet.so | grep libcuda | wc -l) == "0" ]]; then echo flavor=cpu > ${project.build.directory}/flavor.properties; else echo flavor=gpu > ${project.build.directory}/flavor.properties; fi'