-
Notifications
You must be signed in to change notification settings - Fork 212
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
Add NVIDIA CUDA dependency to README.md #601
Conversation
We can add the redist artifact or install CUDA, but we don't need both. |
However, as far as I have experimented, I don't know the reason, but it doesn't work unless both are added. Does it work with only one? |
It should work with the CUDA redist, but you'll need the version that matches the TensorFlow release you are using. |
TensorFlow 2.16.2 uses CUDA 12.3, but CUDA 12.3 is not supported on Ubuntu 24.04. I installed CUDA 12.3 on Ubuntu 22.04, but it does not work with that alone. Which OS are you testing on? |
Please set the "org.bytedeco.javacpp.logger.debug" system property to "true" to get more information on the console. |
I created the smallest code that reproduces the issue.
Please see https://github.com/yukoba/TensorFlowJavaBugReport/blob/main/README.md |
https://github.com/yukoba/TensorFlowJavaBugReport/tree/main?tab=readme-ov-file#result
Regarding the above section, However, according to Is this mismatch between @.11 and @.12 the expected behavior? |
What's the output of |
I have your example working on WSL2 without the JavaCPP CUDA reference in the pom file. I installed CUDA 12.8 (the WSL 2 version, as the standard version made TF Python work but didn't work with TF Java due to library loading weirdness that I didn't run down), and cuDNN 8.9. After symlinking cuDNN into the right location and rerunning It might just be that you don't have cuDNN installed, and the JavaCPP artifact contains cuDNN so things work after that. You should be able to diagnose that by running with |
I will try installing cuDNN now. |
You're right. Thank you! Installing cuDNN made it work. |
I wrote a one-line note to prevent others from making the same mistake as I did. Could you merge the pull request? |
The documentation for using CUDA was insufficient and unclear, so I noted in the README.md that
cuda
oforg.bytedeco
is required. Apologies if this is not the correct approach.