Skip to content

Commit

Permalink
fix the fetching GPU problem (apache#13889)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 authored and zachgk committed May 15, 2019
1 parent d13b47b commit 7d7ec9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scala-package/deploy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion scala-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,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 &gt; ${project.build.directory}/flavor.properties; else echo flavor=gpu &gt; ${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 &gt; ${project.build.directory}/flavor.properties; else echo flavor=gpu &gt; ${project.build.directory}/flavor.properties; fi'</commandlineArgs>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 7d7ec9e

Please sign in to comment.