Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法sailfish在没有GPU的系统上运行? 到目前为止的尝试:PyOpenCL工作正常。但是,没有一个示例sailfish可以正常运行!
sailfish
PyOpenCL
错误出现在sailfish backend_opencl.py:
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、加速器。