请问如何 TinyMS 如何使用 GPU? #98
Answered
by
songquanpeng
songquanpeng
asked this question in
Q&A
-
我已经配置好了 CUDA 10.1 环境,安装好了 MindSpore GPU 1.2.0 版本。
之后: >>> from tinyms.context import set_context
>>> set_context(device_target="GPU")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dl/.conda/envs/tinyms/lib/python3.7/site-packages/mindspore/_checkparam.py", line 833, in wrapper
return func(*args, **kwargs)
File "/home/dl/.conda/envs/tinyms/lib/python3.7/site-packages/mindspore/context.py", line 662, in set_context
raise ValueError(f"Error, package type {__package_name__} support device type {__device_target__}, "
ValueError: Error, package type mindspore support device type cpu, but got device target GPU 我已经查看了文档,发现根本就没说如何安装 GPU 版本的 TinyMS。 |
Beta Was this translation helpful? Give feedback.
Answered by
songquanpeng
Aug 5, 2021
Replies: 1 comment
-
解决了,貌似是因为使用 Conda 安装的 CUDA 不行,手动安装后解决了该问题。 另外也可能和 mindspore-gpu 和 tinyms 的安装顺序有关。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
songquanpeng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
解决了,貌似是因为使用 Conda 安装的 CUDA 不行,手动安装后解决了该问题。
另外也可能和 mindspore-gpu 和 tinyms 的安装顺序有关。