- Cuda error:----------------------------------------------------The cudaGetLastError[100], no CUD

RuntimeError: 
----------------------------------------------------
- Cuda error:
----------------------------------------------------
The cudaGetLastError[100], no CUDA-capable device is detected

----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/ccsrc/plugin/device/gpu/hal/device/cuda_driver.cc:292 device_count

[ERROR] ME(3463501,4002c8054660,python3.9):2025-02-11-21:30:21.331.164 [mindspore/ccsrc/runtime/hardware/device_context_manager.cc:494] WaitTaskFinishOnDevice] SyncStream failed, exception:
----------------------------------------------------
- Cuda error:
----------------------------------------------------
SetDevice for id:0 failed, ret[100], no CUDA-capable device is detected. Please make sure that the 'device_id' set in context is in the range:[0, total number of GPU). If the environment variable 'CUDA_VISIBLE_DEVICES' is set, the total number of GPU will be the number set in the environment variable 'CUDA_VISIBLE_DEVICES'. For example, if export CUDA_VISIBLE_DEVICES=4,5,6, the 'device_id' can be 0,1,2 at the moment, 'device_id' starts from 0, and 'device_id'=0 means using GPU of number 4.

----------------------------------------------------
- C++ Call Stack: (For framework developers)
----------------------------------------------------
mindspore/ccsrc/plugin/device/gpu/hal/device/cuda_driver.cc:308 SetDevice

解决方法:在提交sh的脚本中CUDA_VISIBLE_DEVICES=1,您使用1卡应该是=0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值