indspore/core/utils/ms_context.cc:355 SetDeviceTargetFromInner为什么使用mindspore无法调用GPU
收藏回复举报
indspore/core/utils/ms_context.cc:355 SetDeviceTargetFromInner为什么使用mindspore无法调用GPU
t('forum.solved') 已解决
新人帖
发表于2023-12-15 11:32:44
0 查看

cuda版本11.5 python版本3.9.12

终端使用命令pip install mindspore安装的mindspore2.2.0

代码通过ms.set_context(device_target='GPU', device_id=0)调用GPU

报错显示

RuntimeError:Unsupported device target GPU.This process only supports one of the['CPU'].Plese check whether the GPU environment is installed and configured correctly, and check whether current mindspore wheel package was built with "-e GPU". For details,please refer to "Device load error message".

我要发帖子