错误解决: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
目录
相关文章
|
6月前
|
机器学习/深度学习 并行计算 安全
ImportError: DLL load failed while importing libpaddle: 找不到指定的模块问题
【6月更文挑战第7天】ImportError: DLL load failed while importing libpaddle: 找不到指定的模块问题
568 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)
462 0
【错误记录】NDK 动态库报错 ( dlopen failed: file offset for the library /lib/arm64/libwebp.so“ >= file size:0)
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
230 0
|
计算机视觉
成功解决cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: err
成功解决cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: err
|
并行计算 编译器 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
169 0
|
C++ Windows
编译OpenJDK11:fatal error LNK1104: cannot open file ‘kernel32.lib‘
编译OpenJDK11:fatal error LNK1104: cannot open file ‘kernel32.lib‘
239 0
|
Windows
WINDOWS编译ffmpeg:LINK : fatal error LNK1104: 无法打开文件“LIBCMT.lib”
WINDOWS编译ffmpeg:LINK : fatal error LNK1104: 无法打开文件“LIBCMT.lib”
480 0
|
并行计算 C++
错误解决:src/cpp/cuda.hpp:  fatal error: cuda.h
错误解决:src/cpp/cuda.hpp:  fatal error: cuda.h
124 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
273 0
|
并行计算 计算机视觉
编译OpenCV:precomp.hpp:60:37: fatal error: dynlink_nvcuvid.h
编译OpenCV:precomp.hpp:60:37: fatal error: dynlink_nvcuvid.h
134 0