Ubuntu18.04安装CUDA10+cuDNN7+ROS+caffe避坑

我安装的时候遇到的坑

  1. 安装ROS的时候,发现ros-kinetic-desktop-full始终安不上,后来才知道ubuntu的版本不一样安装的ROS也不一样
    ubuntu16.04对应ros-kinetic;
    ubuntu18.04对应ros-melodic;
    ubuntu20.04对应ros-noetic。
    所以在ubuntu18.04上就应该执行
    sudo apt-get install ros-noetic-desktop-full

警告:/usr/local/cuda/include/math_functions.h:54:2: warning: #warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.” [-Wcpp]
#warning “math_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead.”
原因:cuda版本函数文件更新
解决方案:打开出问题的文件math_functions.cu文件,进行修改

//#include <math_functions.h>  // CUDA's, not caffe's, for fabs, signbit(删除该行)
 #include <cuda_runtime.h>  // CUDA's, not caffe's, for fabs, signbit(增加该行)
 #include <thrust/device_vector.h>
 #include <thrust/functional.h>  // thrust::plus
 #include <thrust/reduce.h>

/usr/local/cuda/include/math_functions.h编译通过在这里插入图片描述

原文链接:https://blog.csdn.net/qq_36426286/article/details/102682226

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值