OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1677 Discussions

Cannot find Xeon with OpenCL drivers with SYCL support

Luigi-Crisci
Beginner
298 Views

Hi,

I'm trying to run a sycl app using DPC++ Spir-v backend but I'm facing a lot of issues with installing the right opencl driver.

Configuration

Description

I tried to download the OpenCL CPU Runtimes for Linux from there: OpenCL™ Runtimes for Intel® Processors
After the installation, clinfo returns the correct device but I can't compile even a simple sycl app using the CPU backend (-fsycl-targets=spir64_x86_64)

Looking at the opencl runtime page, I saw that there is a dedicated section for opencl runtimes with SYCL capabilities, so I tried to download the intel-oneapi-opencl-runtimes from the apt repository.
However, no OpenCL devices are found with clinfo with this method.

Am I missing something?

Additional info for OpenCL Runtimes 18.01

Content of /etc/OpenCL/vendors/: intel64.icd
Content of intel64.icd: /opt/intel/opencl_compilers_and_libraries_18.1.0.015/linux/compiler/lib/intel64_lin/libintelocl.so

Additional info for OpenCL oneapi runtimes
Content of /etc/OpenCL/vendors/: intel64.icd
Content of intel64.icd: /opt/intel/oneapi/lib/intel64/libintelocl.so
Content of /opt/intel/oneapi/lib/intel64/: image.png

Labels (1)
0 Kudos
2 Replies
cw_intel
Moderator
255 Views

Hi,


> However, no OpenCL devices are found with clinfo with this method.

Did you set oneapi environment before clinfo command?

For example, setting oneapi environment via command "source /opt/intel/oneapi/setvars.sh", then use "clinfo -l" command, all the devices are displayed.


Thanks


cw_intel
Moderator
240 Views

Hi,


We haven't heard back from you for a long time so we are assuming that the provided details helped you in solving your problem. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks



Reply