无论我如何尝试让 OpenCL 工作(sgminer、cgminer、c 编程示例,clinfo)
当我以 root 身份运行时,我只会得到一个结果。
当我clinfo不是以 root 身份运行时,我得到:
terminate called after throwing an instance of 'cl::Error'
what(): clGetPlatformIDs
Aborted (core dumped)
Run Code Online (Sandbox Code Playgroud)
我正在使用 AMD opencl 实现,并且 /etc/OpenCL/vendors 下确实存在正确的 ICD 文件。我更改了各种文件的权限但没有成功。
如何在没有 root 访问权限的情况下使其工作