我运行一个程序,收到一个错误,提示未找到 GPU 设备。我猜问题的根源如下。我怎样才能让它clinfo
给出相同的结果sudo clinfo
?
其结果clinfo
是:
Number of platforms 0
其结果sudo clinfo
是:
Platform Name Intel(R) OpenCL HD Graphics
Number of devices 1
Device Name Intel(R) Graphics [0x4c8a]
Device Vendor Intel(R) Corporation
Device Vendor ID 0x8086
Device Version OpenCL 3.0 NEO
Driver Version 21.42.021270
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
答案1
也许您的用户不属于该render
群组。
尝试sudo adduser $USER render