Skip to content

Commit

Permalink
Fix cpu/cuda linker flags
Browse files Browse the repository at this point in the history
  • Loading branch information
agibsonccc committed Apr 20, 2023
1 parent 6779e8b commit 673d279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nd4j/nd4j-backends/nd4j-backend-impls/nd4j-cuda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
<!-- Try to avoid setting this. This is mainly for being able to override for where we put binaries in javacpp jars for android. -->
<javacpp.build.output.path>${project.build.directory}/classes/org/nd4j/linalg/jcublas/bindings/${javacpp.platform}${javacpp.platform.extension}</javacpp.build.output.path>
<module.name>nd4j.cuda</module.name>
<!-- Must not be empty. Otherwise the command line will fail. Put all arguments here needed for customization. If overridden, ensure not empty.-->
<javacpp.compiler.options>-Wl,--no-undefined</javacpp.compiler.options>

</properties>


Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@
<javacpp.platform.compiler/> <!-- -Djavacpp.platform.compiler=/path/to/arm-linux-androideabi-g++ -->
<javacpp.platform.sysroot/> <!-- -Djavacpp.platform.sysroot=$(xcrun -sdk iphoneos -show-sdk-path) -->
<javacpp.platform.extension/> <!-- -Djavacpp.platform.extension=-avx512 -->
<javacpp.compiler.options />
<!-- Must not be empty. Otherwise the command line will fail. Put all arguments here needed for customization. If overridden, ensure not empty.-->
<javacpp.compiler.options>-Wl,--no-undefined</javacpp.compiler.options>
<javacpp.platform.properties>${javacpp.platform}</javacpp.platform.properties>


Expand Down

0 comments on commit 673d279

Please sign in to comment.