You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2019/01/15 21:02:50 UTC
[incubator-mxnet] branch master updated: fix the fetching GPU
problem (#13889)
This is an automated email from the ASF dual-hosted git repository.
lanking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 634d527 fix the fetching GPU problem (#13889)
634d527 is described below
commit 634d527a955b59f62728467451508fa30152aa48
Author: Lanking <la...@live.com>
AuthorDate: Tue Jan 15 16:02:31 2019 -0500
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 c51aa9a..542bf6c 100644
--- a/scala-package/deploy/pom.xml
+++ b/scala-package/deploy/pom.xml
@@ -19,6 +19,7 @@
</description>
<properties>
+ <MXNET_DIR>${project.parent.basedir}/..</MXNET_DIR>
<ARTIFACT_ID>mxnet-full_2.11-${platform}-${flavor}</ARTIFACT_ID>
<revision>1.5.0-SNAPSHOT</revision>
<repositoryId>apache.snapshots.https</repositoryId>
diff --git a/scala-package/pom.xml b/scala-package/pom.xml
index 6665e95..d39075f 100644
--- a/scala-package/pom.xml
+++ b/scala-package/pom.xml
@@ -131,7 +131,7 @@
</goals>
<configuration>
<executable>bash</executable>
- <commandlineArgs>-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'</commandlineArgs>
+ <commandlineArgs>-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'</commandlineArgs>
</configuration>
</execution>
</executions>