oneapi-src / oneapi-src/oneAPI-samples

Crash when creating cl::sycl::queue

オープン
#947 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug
主要言語
C++
スター
1.2k
フォーク
745
PR マージ指標
30日以内にマージされた PR はありません

説明

Summary

I installed oneapi on Ubuntu 22.04 using https://apt.repos.intel.com/oneapi .

I created this trivial file:

#include <CL/sycl.hpp>

int main() {
  // Creating buffer of 4 ints to be used inside the kernel code
  cl::sycl::buffer<cl::sycl::cl_int, 1> Buffer(4);

  // Creating SYCL queue
  cl::sycl::queue Queue;

  return 0;

}

Compiling it works fine, but it crashes when I run it:

stephen@dell:~/dev/src/playground/sycl$ . /opt/intel/oneapi/setvars.sh 
 
:: initializing oneAPI environment ...
   bash: BASH_VERSION = 5.1.16(1)-release
   args: Using "$@" for setvars.sh arguments: 
:: advisor -- latest
:: ccl -- latest
:: compiler -- latest
:: dal -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dnnl -- latest
:: dpcpp-ct -- latest
:: dpl -- latest
:: intelpython -- latest
:: ipp -- latest
:: ippcp -- latest
:: ipp -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: vpl -- latest
:: vtune -- latest
:: oneAPI environment initialized ::
 
stephen@dell:~/dev/src/playground/sycl$ which dpcpp
/home/stephen/software/intel/oneapi/compiler/2022.1.0/linux/bin/dpcpp
stephen@dell:~/dev/src/playground/sycl$ dpcpp main.cpp 
stephen@dell:~/dev/src/playground/sycl$ ./a.out 
Abort was called at 39 line in file:
/opt/src/l0_gpu_driver/shared/source/gmm_helper/client_context/gmm_client_context.cpp
Aborted (core dumped)

Version

intel-oneapi-tbb-devel:
  Installed: 2021.6.0-835
  Candidate: 2021.6.0-835
  Version table:
 *** 2021.6.0-835 500
        500 https://apt.repos.intel.com/oneapi all/main amd64 Packages

Environment

Ubuntu 22.04

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Issue にある単純な main.cpp の再現コードから始め、dpcpp でコンパイルして /opt/intel/oneapi/setvars.sh を初期化した後、Ubuntu 22.04 上で実行します。gmm_client_context.cpp で報告されている abort を調査します。この再現コードで cl::sycl::queue の作成時に abort が発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。