gpt4 book ai didi

python - 旗鱼 : how to run on computer without gpu

转载 作者:太空宇宙 更新时间:2023-11-03 19:07:32 25 4
gpt4 key购买 nike

有没有办法运行sailfish在没有 GPU 的系统上?
到目前为止的尝试:PyOpenCL 工作正常。然而,sailfish 中的示例都无法正常运行!

sailfish backend_opencl.py 中出现错误:

...
devices = platform.get_devices(device_type=cl.device_type.GPU)
RuntimeError: clGetDeviceIDs failed device not found

最佳答案

这是因为目标设备类型被硬编码为 GPU。

您可以尝试使用以下内容更改他们的代码:

platform.get_devices(device_type=cl.device_type.ALL)

它将查找任何设备:GPU、CPU、加速器。

关于python - 旗鱼 : how to run on computer without gpu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14274329/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com