For example, in the pytorch project, it is encountered in autoinit.py
pycuda._ driver.Error:cuInit failed:unknown error
Solution: install NVIDIA modprobe package:
sudo apt-get install nvidia-modprobe
For example, in the pytorch project, it is encountered in autoinit.py
pycuda._ driver.Error:cuInit failed:unknown error
Solution: install NVIDIA modprobe package:
sudo apt-get install nvidia-modprobe
Run the compiled demo program, and the error is as follows:
./demo: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
Check whether libpng exists through the command:
ldconfig -p | grep libpng
Solution:
apt-get install libpng16-dev