Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
206 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...