From 634d527a955b59f62728467451508fa30152aa48 Mon Sep 17 00:00:00 2001 From: Lanking Date: Tue, 15 Jan 2019 16:02:31 -0500 Subject: [PATCH] fix the fetching GPU problem (#13889) --- 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'