You're viewing an old version of the documentation. Click here to see the latest release.

clinfo不打印任何内容

备注

这只是一个Ubuntu系统里的问题。

如果您的用户不 在 render 组中,OpencCL将无法工作

按下键盘上的 Ctrl + Alt + T 键打开终端窗口,然后将您的用户添加到正确的组:

sudo gpasswd -a $USER render

重启你的电脑:

sudo reboot

按下键盘上的 Ctrl + Alt + T 键打开终端窗口,然后执行以下命令:

clinfo -l

这将打印有关系统上所有OpenCL平台及其公开的设备的所有可用信息。

../_images/clinfo-does-not-print-anything-screenshot.png

或者,如果您不想将用户添加到上述组中,您可以使用 sudo

sudo /usr/bin/clinfo -l

如果平台数量等于0,您需要 在Ubuntu上安装OpenCL驱动程序