Closed archenroot closed 8 months ago
If you want to add support for another directory structure than /usr/local/cuda, contributions are welcome!
On my ubuntu 22.04.3 I removed cuda 11 available from Ubuntu maintained packages and replace it by the one from Nvidia version 12 and Nvidia package installs into directories which are expected by the preset:
zangetsu X10SRA ~/devel/sdk ls /usr/local/
drwxr-xr-x 12 root root 4,0K 2023-12-28 19:20 .
drwxr-xr-x 16 root root 4,0K 2023-12-10 17:36 ..
drwxr-xr-x 3 root root 4,0K 2023-11-01 21:12 aws-cli
drwxr-xr-x 2 root root 4,0K 2023-12-28 19:20 bin
lrwxrwxrwx 1 root root 22 2023-12-28 19:20 cuda -> /etc/alternatives/cuda
lrwxrwxrwx 1 root root 25 2023-12-28 19:20 cuda-12 -> /etc/alternatives/cuda-12
drwxr-xr-x 15 root root 4,0K 2023-12-28 19:20 cuda-12.3
drwxr-xr-x 2 root root 4,0K 2022-08-09 13:48 etc
drwxr-xr-x 2 root root 4,0K 2022-08-09 13:48 games
drwxr-xr-x 2 root root 4,0K 2022-08-09 13:48 include
drwxr-xr-x 3 root root 4,0K 2022-08-09 13:48 lib
lrwxrwxrwx 1 root root 9 2023-06-18 08:28 man -> share/man
drwxr-xr-x 2 root root 4,0K 2022-08-09 13:48 sbin
drwxr-xr-x 8 root root 4,0K 2023-12-14 20:01 share
drwxr-xr-x 2 root root 4,0K 2022-08-09 13:48 src
closing this issue
On my system: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
I installed cuda using: sudo apt install nvidia-cuda-toolkit
but the files are not inside /usr/local/cuda, but here:
I changed path in the script and it could start, but it failed again:
[ERROR] Failed to execute JavaCPP Builder: Could not parse "cudnn.h": File does not exist
I searched for the file and found it here:
I created a link manually:
sudo ln -s /usr/include/x86_64-linux-gnu/cudnn.h /usr/include/cudnn.h
- there are required many files to create a link:the package is kinda broken as it doesn't show the header files:
but when I removed it, it showed the files deleted including header files:
Question: should I use the files downloaded from Nvidia site instead of these packages provided by Ubuntu to be as much as possible compatible with javacpp-preset config?