Forum

Attention: For Live support and discussion, please visit our Discord!  https://discord.me/curecoin

Ubuntu 18.04, FAH 7.5.1, CUDA Not Detected  

  RSS
wiggleworms
(@wiggleworms)
New Member Customer

I installed CUDA via

apt install nvidia-cuda-toolkit

which I learned from the following article, places the files in a different location than they have traditionally been up until now.
https://medium.com/@asmello/how-to-install-tensorflow-cuda-9-1-into-ubuntu-18-04-b645e769f01d

So I created symlinks to the traditional spots per the article

sudo mkdir -p /usr/local/cuda /usr/local/cuda/extras/CUPTI /usr/local/cuda/nvvm
sudo ln -s /usr/bin /usr/local/cuda/bin
sudo ln -s /usr/include /usr/local/cuda/include
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/local/cuda/lib64
sudo ln -s /usr/local/cuda/lib64 /usr/local/cuda/lib
sudo ln -s /usr/include /usr/local/cuda/extras/CUPTI/include
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/local/cuda/extras/CUPTI/lib64
sudo ln -s /usr/lib/nvidia-cuda-toolkit/libdevice /usr/local/cuda/nvvm/libdevice

Yet I still got this message in the logs /  FAHControl 

CUDA: Not detected: Failed to open dynamic library 'libcuda.so': libcuda.so: cannot open shared object file: No such file or directory

Creating another symlink from "libcuda.so.1" to "libcuda.so" fixed this error. I'm not sure why it was looking for "libcuda.so" however because this file is a stub used at compile time (it is in a folder called "stubs").

This is how the symlinks look in my /usr/local/cuda/lib64

lrwxrwxrwx   1 root root        12 Jan 15 00:34 libcuda.so -> libcuda.so.1
lrwxrwxrwx   1 root root        17 Dec 27 16:28 libcuda.so.1 -> libcuda.so.410.79
-rw-r--r--   1 root root  15662328 Nov 15 11:54 libcuda.so.410.79

Hopefully this will help someone as I could not find anything searching the forums. System info for reference.

05:49:16:******************************** Build ********************************
05:49:16: Version: 7.5.1
05:49:16: Date: May 11 2018
05:49:16: Time: 19:59:04
05:49:16: Repository: Git
05:49:16: Branch: master
05:49:16: Compiler: GNU 6.3.0 20170516
05:49:16: Options: -std=gnu++98 -O3 -funroll-loops
05:49:16: Platform: linux2 4.14.0-3-amd64
05:49:16: Bits: 64
05:49:16: Mode: Release
05:49:16:******************************* System ********************************
05:49:16: CPU: Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz
05:49:16: CPU ID: GenuineIntel Family 6 Model 79 Stepping 1
05:49:16: CPUs: 12
05:49:16: Memory: 31.34GiB
05:49:16: Free Memory: 27.56GiB
05:49:16: Threads: POSIX_THREADS
05:49:16: OS Version: 4.15
05:49:16: Has Battery: false
05:49:16: On Battery: false
05:49:16: UTC Offset: -5
05:49:16: PID: 7868
05:49:16: CWD: /var/lib/fahclient
05:49:16: OS: Linux 4.15.0-43-generic x86_64
05:49:16: OS Arch: AMD64
05:49:16: GPUs: 1
05:49:16: GPU 0: Bus:2 Slot:0 Func:0 NVIDIA:7 GP104 [GeForce GTX 1070] 6463
05:49:16: CUDA Device 0: Platform:0 Device:0 Bus:2 Slot:0 Compute:6.1 Driver:10.0
05:49:16:OpenCL Device 0: Platform:0 Device:0 Bus:2 Slot:0 Compute:1.2 Driver:410.79

ReplyQuote
Posted : 15/01/2019 1:08 am
Topic Tags
Share:
  
Working

Please Login or Register