-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support various versions of cuda #162
Comments
Hi @langley
Sadly, compiling TF from sources with Cuda is a quite a bit of trial and error. Here are some things I learned the hard way:
|
Would it make sense for TF4S to use JavaCPP Presets for TensorFlow? They have convenient packaging of all the binaries for several platforms (linux, mac, windows), and GPU support is just a maven include away. I realize that the C++ Tensorflow is different from the C API, but they have some instructions for how to create new presets. |
JavaCPP requires a lot of handwork. In most cases it is difficult to generate suitable Java interfaces. I have used JavaCPP for PyTorch api, you may find it here: https://github.com/nazarblch/torch-scala |
I'm exploring using your package on google's colaboratory by leveraging almond.sh
The non-gpu version works fine, THANKS this is awesome!
But when I try and use the linux-gpu-x86_64 version, I get the following error:
java.lang.UnsatisfiedLinkError: /tmp/tensorflow_scala_native_libraries13086553369265287406/libtensorflow_jni.so: libcublas.so.9.0: cannot open shared object file: No such file or directory
I believe this is similar to tensor flow issue #15604
When I checked what was installed under /usr/local I see
...
lrwxrwxrwx 1 root root 9 Apr 4 20:13 cuda -> cuda-10.0
drwxr-xr-x 1 root root 4096 Apr 4 20:11 cuda-10.0
...
My guess is that the "fix" for this is to compile tensorflow from source against that version of the cuda libraries. So I have a couple of questions before I embark on that.
The text was updated successfully, but these errors were encountered: