我在stackoverflow中回答了该问题:

https://stackoverflow.com/a/66044636/12838403

Here I put the final solution:

  • Step1: Run find
find /usr/local/ -name cublas_v2.h

And we find the path of the file:

/usr/local/cuda-10.2/targets/x86_64-linux/include/cublas_v2.h

  • Step2: export the path
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/cuda-10.2/targets/x86_64-linux/include/

OK! Problem solved.

exportcommand can only work once. To make it a permanent change, you need to modify the ~/.bashrc:

vi ~/.bashrc

Add

CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/cuda-10.2/targets/x86_64-linux/include/

fatal error: cublas_v2.h相关推荐

  1. caffe安装:./include/caffe/util/device_alternate.hpp:34:23: fatal error: cublas_v2.h: 没有那个文件或目录

    出现问题: dorothy@dorothy-MS-7A94:~/enviroment/caffe-master$ make all -j8 PROTOC src/caffe/proto/caffe.p ...

  2. ubuntu16.04 cuda8.0 caffe 编译 error: cublas_v2.h 没有那个文件或目录

    ubuntu16.04 cuda8.0 caffe 编译时遇到 caffe fatal error: cublas_v2.h 没有那个文件或目录 参考:http://blog.csdn.net/qq_ ...

  3. uwsgi 安装报错 plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory

    1. Python3 安装 uwsgi 报错 直接使用命令 sudo pip3 install uwsgi 安装如下错误: ubuntu@ubuntu:~/Downloads$ sudo pip3 i ...

  4. fatal error: Python.h: No such file or directory 解决

    [常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux 软件: 系统python默认版本2.7 Py ...

  5. Install matplotlib Error: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directory

    在ubuntu下从源码安装matplotlib的时候出现这样的错误: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or dir ...

  6. 【错误记录】编译 ijkplayer 报错 (fatal error: libyuv.h: No such file or directory #include “libyuv.h“ )

    文章目录 一.报错信息 二.解决方案 参考 https://github.com/bilibili/ijkplayer 项目的编译过程 ; 一.报错信息 在编译完 ffmpeg 之后 , 执行 ./c ...

  7. 成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory

    成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory 目录 解决问题 ...

  8. fatal error: hdf5.h: No such file or directory

    在编译caffe的时候,可能会出现各种找不到文件的情况.这种情况的一种解决方式是改变Makefile.config中的路径. 比如,在编译caffe的时候提醒找不到hdf5.h或者hdf5_hl.h ...

  9. 错误fatal error: zlib.h: 没有那个文件或目录的解决办法

    环境: Ubuntu18.04 x86-64 错误现象: 当编译ffmpeg的代码时,有时会出现以下错误: libavformat/http.c:25:10: fatal error: zlib.h: ...

最新文章

  1. 如何部署云服务器,保证应用高可用性,永不停机
  2. linux程序接口实验,Linux程序接口实验:取进程标志及用户信息
  3. 《深入理解Spark:核心思想与源码分析》——3.10节创建和启动ExecutorAllocationManager...
  4. OpenResty介绍
  5. maven 版本号插件_测试Maven版本插件自动递增版本号
  6. Shell编程 之 for 循环
  7. 利用Vivado封装DCP文件基本流程
  8. php服务器去广告,php – 简单的广告服务器
  9. 《Essential C++》笔记之设计一个泛型算法(一)
  10. Java根据路径获取文件内容的三种场景分析
  11. 给客户寄荔枝很好,开展新业务更重要
  12. minst 手写数字识别实战
  13. word——VBA编程
  14. 网络安全知识竞赛选择题(121-160题)
  15. 优化TCP/IP,HTTP,Https,Socket,websocket,弱网及网络协议(概念)
  16. 鲲鹏920是计算机CPU吗,华为鲲鹏920
  17. 洛谷试炼场 动态规划TG.lv(2)
  18. 给虚拟机下载安装jdk,hadoop等(非常详细的步骤)
  19. Redis学习之缓存数据类型
  20. course83_lab2_8086的寻址方式

热门文章

  1. 移动支付中二维码条码识别率提高的方法
  2. Jquery placeholder国际化,支持中英文展示。
  3. 一款好用的markdown编辑器Typora
  4. 亮相2019MWC,九州云荣获中国联通MEC边缘云金牌合作伙伴
  5. Kotlin最佳项目实战——欧瑞天气App
  6. 觖决Caused by: org.quartz.SchedulerException will never fire.抛的异常
  7. 为什么要把js放在页面底部,css放在顶部
  8. 华为防火墙策略路由旁路部署
  9. 技术部工作中常见问题(o_company)
  10. java XStream更新