oneapi-src / oneapi-src/oneAPI-samples
Unable to run sample SYCL program
まだ誰も着手していません。
- 主要言語
- C++
- スター
- 1.2k
- フォーク
- 745
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue にリンクされている GetStartedGuide から始め、simple_sycl.cpp のビルドと実行に使用するコマンド、および報告された PI_ERROR_DEVICE_NOT_FOUND メッセージを確認します。記載されている環境とランタイムライブラリが、指定された Ubuntu CPU システム上で使用可能なデバイスを提供するか確認します。サンプル実行ファイルが正常に実行できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, ubuntu
- 領域
- developer-experience, operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100