uncomplicate / deep-diamond

A fast Clojure Tensor & Deep Learning library
https://aiprobook.com
Eclipse Public License 1.0
432 stars 17 forks source link

macOS: java.io.IOException: No resource found with name '/lib/libJCudaRuntime-11.0.0-apple-x86_64.dylib' #2

Closed blueberry closed 4 years ago

blueberry commented 4 years ago

Stack trace from the attempt to load the library as a resource:

java.io.IOException: No resource found with name '/lib/libJCudaRuntime-11.0.0-apple-x86_64.dylib'
etc.

This is not a bug. CUDA is not available on macOS any more, due to Apple/Nvidia hostility.

The solution is to explicitly exclude all dependencies related to CUDA.

For example, add something like this in your project.clj to globally exclude JCuda jars:

:exclusions [org.jcuda/jcudnn 
                    org.jcuda/jcuda
                    org.jcuda/jcublas]