当前位置:网站首页>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.
【截图信息】

请问有大神知道这个是什么原因吗?该怎么解决呢?
解决方案:
机器环境问题
边栏推荐
- LeetCode Exercise - Two Questions About Finding Sum of Array Elements
- VBA connects Access database and Excel
- 【剑指 Offe】剑指 Offer 17. 打印从1到最大的n位数
- 架构师如何成长
- Talking about Contrastive Learning (Contrastive Learning) the first bullet
- 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
- [TypeScript]编译配置
- 还有三天忙完
- 启动前台Activity
- 【PHPWord】Quick Start of PHPWord in PHPOffice Suite
猜你喜欢

开心的聚餐

中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳

Critical Reviews | A review of the global distribution of antibiotics and resistance genes in farmland soil by Nannong Zou Jianwen's group

MindSpore:【JupyterLab】查看数据时报错

Meta元宇宙部门第二季度亏损28亿!仍要继续押注?元宇宙发展尚未看到出路!

部分分类网络性能对比

Delay queue optimization (2)

荐号 | 对你有恩的人,不要请吃饭来报答

VBA批量将Excel数据导入Access数据库

MindSpore:【JupyterLab】按照新手教程训练时报错
随机推荐
Hello, my new name is "Bronze Lock/Tongsuo"
VS Code connects to SQL Server
NC | 西湖大学陶亮组-TMPRSS2“助攻”病毒感染并介导索氏梭菌出血毒素的宿主入侵...
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方法
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
卫星电话是直接与卫星通信还是通过地面站?
部分分类网络性能对比
运营 23 年,昔日“国内第一大电商网站”黄了...
又一家公司面试的内容
【刷题篇】计算质数
中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
2种手绘风格效果比较,你更喜欢哪一种呢?
The problem of writing go run in crontab does not execute
Common linked list problems and their Go implementation
7.29模拟赛总结
【总结】1396- 60+个 VSCode 插件,打造好用的编辑器
Swiper轮播图片并播放背景音乐
设计消息队列存储消息数据的 MySQL 表格
What is the value of biomedical papers? How to translate the papers into Chinese and English?
Chapter 14 Type Information