I’m trying to build TornadoVM (https://github.com/beehive-lab/TornadoVM) to test on Intel hardware. I’m getting a compile error:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR)
The TornadoVM README says this is a known issue on Ubuntu:
In Ubuntu >= 16.04 CMake can cause the following error: Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "2.2"). Then the following package should be installed:
$ apt-get install ocl-icd-opencl-dev
I understand I can’t use the package manager to do this myself but since the package seems to be well known I wonder if it can be verified and installed to let me, and maybe others, make use of it.
Thank you for reaching out. Please try editing the CMAKE file by adding the path to openCL headers and libraries. OpenCL headers and libraries can be found in this path: /opt/intel/oneapi/compiler/latest/linux/include/sycl/CL. See if this solves the issue.
As for the package installation, sorry for the inconvenience, users don't have admin privileges in DevCloud. Intel DevCloud® is a shared environment which comes with pre-installed validated Intel® oneAPI software and complimentary packages. As a policy we do not install custom (open source or 3rd party licensed) software to the environment and recommend that you explore available and equivalent oneAPI Software tools or components. You may be able to install software locally in your user folder using < > “pip install –user” (dash dash user switch allows you to install local in your home directory).
Thank you for your help. Unfortunately, the build in question is a little complex (script -> maven -> CMake). I can see the headers and lib but have not yet succeeded in getting the build to see them. I'm going to reach out to the TornadoVM developers.
Someone else at Intel suggested Docker as a possibly more stable way to can up the dependencies for a project like TornadoVM. I don't have experience building Docker images / containers, but is it possible to run a Docker container on DevCloud instances?
Sorry to inform you that, it is not possible to run a Docker container on DevCloud instances as Intel devcloud provides users neither administrative privileges nor sudo access.