As the title, in the pytorch project, encountered in autoinit.py
pycuda._driver.Error: cuInit failed: unknown error
Install the nvidia-modprobe package:
nvidia-modprobe
sudo apt-get install nvidia-modprobe