当前位置:网站首页>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.
【截图信息】
请问有大神知道这个是什么原因吗?该怎么解决呢?
解决方案:
机器环境问题
边栏推荐
- 6 yuan per catty, why do Japanese companies come to China to collect cigarette butts?
- Scrapy framework is introduced
- 牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
- What is the value of biomedical papers? How to translate the papers into Chinese and English?
- Mysql execution principle analysis
- golang日志库zerolog使用记录
- 【网站放大镜效果】两种方式实现
- 【剑指 Offe】剑指 Offer 17. 打印从1到最大的n位数
- 谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
- 架构师如何成长
猜你喜欢
Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
Recommendation | People who are kind to you, don't repay them by inviting them to eat
Critical Reviews | 南农邹建文组综述全球农田土壤抗生素与耐药基因分布
运营 23 年,昔日“国内第一大电商网站”黄了...
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
已删除
Google's AlphaFold claims to have predicted almost every protein structure on Earth
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
SwiftUI iOS Boutique Open Source Project Complete Baked Food Recipe App based on SQLite (tutorial including source code)
golang日志库zerolog使用记录
随机推荐
MySQL data types
Critical Reviews | A review of the global distribution of antibiotics and resistance genes in farmland soil by Nannong Zou Jianwen's group
VBA 连接Access数据库和Excle
- daily a LeetCode 】 【 191. A number of 1
MySql中@符号的使用
Codeblocks + Widgets create window code analysis
【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list
Tensorflow2.0 confusion matrix does not match printing accuracy
Anaconda Navigator stuck on loading applications
Listen to the boot broadcast
Does the satellite phone communicate directly with the satellite or through a ground station?
常见链表题及其 Go 实现
LeetCode Exercise - Two Questions About Finding Sum of Array Elements
生物医学论文有何价值 论文中译英怎样翻译效果好
【剑指 Offe】剑指 Offer 17. 打印从1到最大的n位数
natural language processing nltk
crontab中写go run不执行的问题
Google's AlphaFold claims to have predicted almost every protein structure on Earth
vxe-table实现复选框鼠标拖动选中
Another company interview