当前位置: 首页 > news >正文

F1217 09:24:27.107496 4541 syncedmem.cpp:71] Check failed: error == cudaSuccess (30 vs. 0) unknown

F1217 09:24:27.107496  4541 syncedmem.cpp:71] Check failed: error == cudaSuccess (30 vs. 0)  unknown error

或者

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
CXX src/gtest/gtest-all.cpp
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
CXX/LD -o .build_release/test/test_all.testbin src/caffe/test/test_caffe_main.cpp

 

参考链接:
https://blog.csdn.net/u010167269/article/details/50703923

 

1、官网查看自己电脑显卡的计算能力

查看链接:https://developer.nvidia.com/cuda-gpus

 

可知:我的电脑对应的显卡计算能力是6.1


GeForce CUDA-Enabled GeForce Products
GeForce Desktop Products


GPU     Compute Capability

GeForce GTX 1050     6.1

 

 

2、打开caffe目录下的Makefile.config,修改CUDA_ARCH:

 

pheehu@pheehu:~$ cd caffe
pheehu@pheehu:~/caffe$ sudo gedit Makefile.config

 

# For CUDA >= 9.0, comment the *_20 and *_21 lines for compatibility.
CUDA_ARCH := #-gencode arch=compute_20,code=sm_20 \
        #-gencode arch=compute_20,code=sm_21 \
        #-gencode arch=compute_30,code=sm_30 \
        #-gencode arch=compute_35,code=sm_35 \
        #-gencode arch=compute_50,code=sm_50 \
        #-gencode arch=compute_52,code=sm_52 \
        #-gencode arch=compute_60,code=sm_60 \
        -gencode arch=compute_61,code=sm_61 \
        -gencode arch=compute_61,code=compute_61

只留下 *_61结尾的最后两行,其他都注释掉

 

 

 

相关文章:

  • 错误:pandas 0.23.4 has requirement python-dateutil=2.5.0, but you'll have python-dateutil 1.5
  • nvidia driver 驱动重装教程
  • The directory '/home/XXX/.cache/pip/http' or its parent directory is not owned by the current user
  • caffe获取mnist数据集出错:gzip: train-images-idx3-ubyte.gz: not in gzip format
  • ./include/caffe/util/cudnn.hpp: In function ‘const char* cudnnGetErrorString(cudnnStatus_t)’: ./incl
  • nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be remov
  • vtk-8.01的java版本环境配置
  • git上传项目或文件到github上
  • VTK绘图窗口vtkRenderWindow 保存为图片,并且不显示绘图窗口
  • NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the lat
  • ~/caffe$ make all -j8 Makefile:606: recipe for target '.build_release/cuda/src/caffe/solvers/adam_s
  • File /usr/bin/pip, line 9, in module from pip import main ImportError: cannot import name m
  • python:pycharm 读取项目中的文件:相对路径和绝对路径
  • python数组复制(转载)
  • ubuntu16.04 caffe编译过程记录
  • 【跃迁之路】【585天】程序员高效学习方法论探索系列(实验阶段342-2018.09.13)...
  • Angular4 模板式表单用法以及验证
  • C# 免费离线人脸识别 2.0 Demo
  • ComponentOne 2017 V2版本正式发布
  • leetcode388. Longest Absolute File Path
  • Mybatis初体验
  • ng6--错误信息小结(持续更新)
  • nginx 配置多 域名 + 多 https
  • PHP 程序员也能做的 Java 开发 30分钟使用 netty 轻松打造一个高性能 websocket 服务...
  • Python打包系统简单入门
  • Python爬虫--- 1.3 BS4库的解析器
  • React-生命周期杂记
  • Vue ES6 Jade Scss Webpack Gulp
  • 编写高质量JavaScript代码之并发
  • 每天10道Java面试题,跟我走,offer有!
  • 批量截取pdf文件
  • 前端技术周刊 2018-12-10:前端自动化测试
  • 适配mpvue平台的的微信小程序日历组件mpvue-calendar
  • 微信开源mars源码分析1—上层samples分析
  • 源码之下无秘密 ── 做最好的 Netty 源码分析教程
  • 追踪解析 FutureTask 源码
  • ​LeetCode解法汇总1276. 不浪费原料的汉堡制作方案
  • ![CDATA[ ]] 是什么东东
  • (02)Cartographer源码无死角解析-(03) 新数据运行与地图保存、加载地图启动仅定位模式
  • (3)选择元素——(14)接触DOM元素(Accessing DOM elements)
  • (3)选择元素——(17)练习(Exercises)
  • (done) 两个矩阵 “相似” 是什么意思?
  • (Matalb时序预测)WOA-BP鲸鱼算法优化BP神经网络的多维时序回归预测
  • (转) Android中ViewStub组件使用
  • (转)PlayerPrefs在Windows下存到哪里去了?
  • .net core 控制台应用程序读取配置文件app.config
  • .net framework profiles /.net framework 配置
  • .net mvc actionresult 返回字符串_.NET架构师知识普及
  • .NET Standard / dotnet-core / net472 —— .NET 究竟应该如何大小写?
  • .NET/C# 解压 Zip 文件时出现异常:System.IO.InvalidDataException: 找不到中央目录结尾记录。
  • .netcore 6.0/7.0项目迁移至.netcore 8.0 注意事项
  • .NET设计模式(11):组合模式(Composite Pattern)
  • .net实现头像缩放截取功能 -----转载自accp教程网
  • .NET中两种OCR方式对比
  • /etc/fstab 只读无法修改的解决办法