Contents
Why does strace fail to load library libopencl?
The above output shows only the symlink which points to the “real” file libOpenCL.so.1.0.0. However, that file should exist in the same directory, but it is not available. That is why the strace output reports ENOENT when trying to read the file. I managed to solve this, so I am posting what I did in case anybody falls in the same pit.
Where to download libopencl.so [ issue # 438 ]?
I finally handle it by ” sudo apt-get install mali-fbdev “. FYI: You don’t need to pull any library from your platform to build the library & tests. The library comes with a stub version of libOpenCL which is used to resolve the OpenCL symbols at compile time.
Why is libopencl.so.1 a broken symlink?
It’s not the issue that libOpenCL.so.1 is a symlink, but that it is a broken symlink. The above output shows only the symlink which points to the “real” file libOpenCL.so.1.0.0. However, that file should exist in the same directory, but it is not available. That is why the strace output reports ENOENT when trying to read the file.
Where does dynamic linker look for libopencl.so.1?
However, if I can say what exactly is the problem the administrators might help me. CUDA seems to be installed ( nvidia-smi and nvcc –help both work). strace will help you to debug your issue. It will show you where dynamic linker looks for libOpenCL.so.1. Note that you may ended up with a broken symlink inside your ~/cuda directory.
What I found after some digging is that the Intel SDK installation installs the OpenCL shared libraries -having in mind changes in year and versions- in /opt/intel/system_studio_2019/opencl_compilers_and_libraries_18.1.0.013/linux/compiler/lib/intel64_lin/ .
Why do I have no root access to libopencl?
That means I have no root access. However, if I can say what exactly is the problem the administrators might help me. CUDA seems to be installed ( nvidia-smi and nvcc –help both work). strace will help you to debug your issue. It will show you where dynamic linker looks for libOpenCL.so.1.