错误解决:src/cpp/cuda.hpp:  fatal error: cuda.h

简介: 错误解决:src/cpp/cuda.hpp:  fatal error: cuda.h

这几天被这个搞得焦头烂额。后来总算是解决了。


在.bashrc中,如下修改:

export CUDA_ROOT=/usr/local/cuda-9.2
export PATH=$CUDA_ROOT:$CUDA_ROOT/bin:/usr/local/bin:$PATH

 奇怪的是,如果是export CUDA_ROOT=/usr/local/cuda,可能有怪问题。


生效

bash .bashrc

目录
相关文章
|
编译器 Go 开发工具
常见问题之Golang——cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%错误
本文主要是对我日常在使用golang时遇到的一些问题与解决方式进行的汇总,在此提供给大家便于排查一些遇到的问题,其中有更好的解决方案可在评论区留言。
967 0
常见问题之Golang——cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%错误
|
6月前
|
Linux
linux运行protoc出现错误 while loading shared libraries: libprotoc.so.19
linux运行protoc出现错误 while loading shared libraries: libprotoc.so.19
|
开发工具 git
MAC编译OpenJDK8:clang: error: include path for libstdc++ headers not found(独家解决办法)
MAC编译OpenJDK8:clang: error: include path for libstdc++ headers not found(独家解决办法)
104 0
|
11月前
VS2022编译GDAL库报错: fatal error U1050: PROJ_INCLUDE should be defined. PROJ >= 6 is a required depende
VS2022编译GDAL库报错: fatal error U1050: PROJ_INCLUDE should be defined. PROJ >= 6 is a required depende
106 0
|
并行计算 编译器 TensorFlow
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
win10 install tensorflow error:Loaded runtime CuDNN library: 7102 but source was compiled with 7005
138 0
|
Android开发
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
380 0
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
|
C++ Windows
编译OpenJDK11:fatal error LNK1104: cannot open file ‘kernel32.lib‘
编译OpenJDK11:fatal error LNK1104: cannot open file ‘kernel32.lib‘
178 0
msys2编译ffmpeg:ERROR: libx264 not found
msys2编译ffmpeg:ERROR: libx264 not found
97 0
|
计算机视觉
catkin_make:Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not fo
catkin_make:Project ‘cv_bridge‘ specifies ‘/usr/include/opencv‘ as an include dir, which is not fo
160 0
|
Linux Android开发
LINUX编译Android FFmpeg:fatal error: errno.h: No such file or directory
LINUX编译Android FFmpeg:fatal error: errno.h: No such file or directory
90 0