oneapi-src / oneapi-src/oneAPI-samples
Unable to run sample SYCL program
Nessuno ha ancora preso questa issue.
- Lingua principale
- C++
- Stelle
- 1.2k
- Fork
- 745
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il GetStartedGuide collegato nell’issue, quindi esamina i comandi utilizzati per compilare ed eseguire simple_sycl.cpp e il messaggio PI_ERROR_DEVICE_NOT_FOUND segnalato. Conferma se l’ambiente documentato e le librerie runtime forniscono un dispositivo utilizzabile sul sistema Ubuntu con CPU indicato; l’attività è completata quando l’eseguibile di esempio viene eseguito correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, ubuntu
- Ambito
- developer-experience, operating-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100