Fatal Error: cuda_runtime.h: No such file or directory解决办法

fatal error: cuda_runtime.h: No such file or directory

头文件找不到,可以尝试用locate/whereis命令找找这个文件在哪儿
或者:

conda install yaml
sudo apt-get install nvidia-cuda-toolkit
export CPATH=/usr/local/cuda-10.1/targets/x86_64-linux/include:$CPATH
export LD_LIBRARY_PATH=/usr/local/cuda-10.1/targets/x86_64-linux/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-10.1/bin:$PATH

你可能感兴趣的:(Errors)