如何在Linux上下载opencl?

问题描述

我找到了一些有关如何下载opencl的解决方案。但最终我必须运行命令 “ / opt / rocm / opencl / bin / x86_64 / clinfo”,并以错误代码“ bash:/ opt / rocm / opencl / bin / x86_64 / clinfo:无此类文件或目录”结束。所以我的问题是如何正确安装opencl并以这种方式调用它?

解决方法

OpenCL运行时与图形驱动程序一起安装。无需安装其他任何程序即可运行OpenCL程序。对于OpenCL开发,您需要下载并包含OpenCL C++ header files。程序clinfo只是用于识别您的硬件的工具,但您不需要它。要安装它,请使用sudo apt-get install clinfo

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...