Open
Description
Summary
I have built SYCL compiler from the source. I was trying out the example given in the below documentation :
https://intel.github.io/llvm-docs/GetStartedGuide.html#run-simple-dpc-application
After building the compiler from source, I have updated my environment as suggested
export PATH=$DPCPP_HOME/llvm/build/bin:$PATH
export LD_LIBRARY_PATH=$DPCPP_HOME/llvm/build/lib:$LD_LIBRARY_PATH
I could build the binary successfully, however on running that executable , I am getting below error
Command used to generate binary
clang++ -fsycl simple_sycl.cpp -o syc
./syc
terminate called after throwing an instance of 'sycl::_V1::runtime_error'
what(): No device of requested type available. -1 (PI_ERROR_DEVICE_NOT_FOUND)
Aborted (core dumped)
Version
Tip commit of git
3df87e20569ea63d0a74de525b6d19788dd8afca
Environment
OS
Ubuntu 20.04.3 LTS
CPU information
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 43 bits physical, 48 bits virtual
CPU(s): 12
On-line CPU(s) list: 0-11
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 12
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Gold 5220R CPU @ 2.20GHz
Stepping: 0
CPU MHz: 2194.844
Steps to reproduce
Command used to generate binary
clang++ -fsycl simple_sycl.cpp -o syc
./syc
Observed behavior
I am suspecting missing runtime libraries.