当前位置:网站首页>MindSpore:【MindSpore1.1】Mindspore安装后验证出现cudaSetDevice failed错误
MindSpore:【MindSpore1.1】Mindspore安装后验证出现cudaSetDevice failed错误
2022-07-30 19:04:00 【小乐快乐】
问题描述:
【问题描述】
使用singularity方式创造ubuntu镜像安装MindSpore ,出现 cudaSetDevice failed, ret[999], unknown error 问题
原生操作系统: CentOS Linux release 7.4.1708 (Core)
singularity版本: 3.5.2
镜像操作系统: ubuntu 18.04.5 LTS (Bionic Beaver)
镜像源: docker://nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
在镜像操作系统安装MindSpore1.1.1 按照安装步骤安装成功,使用样例程序验证报错:
[ERROR] DEVICE(11474,python):2021-04-01-01:26:20.266.013 [mindspore/ccsrc/runtime/device/gpu/cuda_driver.cc:244] set_current_device] cudaSetDevice failed, ret[999], unknown error
[ERROR] SESSION(11474,python):2021-04-01-01:26:20.266.099 [mindspore/ccsrc/backend/session/gpu_session.cc:97] Init] GPUSession failed to set current device id.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/anaconda3/envs/python3.7/lib/python3.7/site-packages/mindspore/ops/primitive.py", line 186, in __call__
return _run_op(self, self.name, args)
File "/opt/anaconda3/envs/python3.7/lib/python3.7/site-packages/mindspore/common/api.py", line 75, in wrapper
results = fn(*arg, **kwargs)
File "/opt/anaconda3/envs/python3.7/lib/python3.7/site-packages/mindspore/ops/primitive.py", line 525, in _run_op
output = real_run_op(obj, op_name, args)
RuntimeError: mindspore/ccsrc/backend/session/gpu_session.cc:97 Init] GPUSession failed to set current device id.
【截图信息】

请问有大神知道这个是什么原因吗?该怎么解决呢?
解决方案:
机器环境问题
边栏推荐
- AI Basics: Graphical Transformer
- AI基础:图解Transformer
- VBA 连接Access数据库和Excle
- Deepen school-enterprise cooperation and build an "overpass" for the growth of technical and skilled talents
- 架构师如何成长
- WeChat Mini Program Cloud Development | Urban Information Management
- Go 系统收集
- 第4章 控制执行流程
- "Ruffian Heng Embedded Bimonthly" Issue 59
- MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
猜你喜欢

VBA connects Access database and Excel

LeetCode Exercise - Two Questions About Finding Sum of Array Elements

NXP IMX8QXP replacement DDR model operation process

kotlin by lazy

延时队列优化 (2)

"Ruffian Heng Embedded Bimonthly" Issue 59

6块钱1斤,日本公司为何来中国收烟头?

JS提升:Promise中reject与then之间的关系

Delay queue optimization (2)

natural language processing nltk
随机推荐
第14章 类型信息
LocalDate时间生成
NC | 西湖大学陶亮组-TMPRSS2“助攻”病毒感染并介导索氏梭菌出血毒素的宿主入侵...
The use of terminal split screen tool Terminalx
The large-scale application of artificial intelligence AI products in industrial-grade mature shipping ports of CIMC World Lianda will create a new generation of high-efficiency smart ports and innova
又一家公司面试的内容
浅聊对比学习(Contrastive Learning)第一弹
【每日一道LeetCode】——191. 位1的个数
Scrapy框架介绍
MindSpore:【模型训练】【mindinsight】timeline的时间和实际用时相差很远
Tensorflow2.0 confusion matrix does not match printing accuracy
延时队列优化 (2)
Hello, my new name is "Bronze Lock/Tongsuo"
【刷题篇】计算质数
CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
SimpleOSS第三方库libcurl与引擎libcurl错误解决方法
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
第4章 控制执行流程
kotlin的by lazy
JsonUtil基于字符串操作josn