本文介绍了如何在 Linux 上下载 opencl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了几种有关如何下载 opencl 的解决方案.但最终我必须运行命令/opt/rocm/opencl/bin/x86_64/clinfo"并最终得到错误代码bash:/opt/rocm/opencl/bin/x86_64/clinfo: No such file or directory".所以我的问题是如何正确安装 opencl 并以这种方式调用它?

I have found several solutions on how to download opencl. But ultimately I have to run the command"/opt/rocm/opencl/bin/x86_64/clinfo" and end up with the error code "bash: /opt/rocm/opencl/bin/x86_64/clinfo: No such file or directory". So my question is how do I correctly install opencl and so that it is callable in this manner?

推荐答案

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

The OpenCL runtime is installed alongside your graphics driver. There is no need to install anything else to run OpenCL programs. For OpenCL development, you need to download and include the OpenCL C++ header files. The program clinfo is just a tool to identify your hardware, but you don't need it. To install it, use sudo apt-get install clinfo.

这篇关于如何在 Linux 上下载 opencl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 18:25