Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Crash when creating cl::sycl::queue

未關閉
#947 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
cpp
領域
tooling

研究方向

從 issue 中的簡單 main.cpp 重現開始,在使用 dpcpp 編譯並初始化 /opt/intel/oneapi/setvars.sh 後,於 Ubuntu 22.04 上執行它。調查 gmm_client_context.cpp 中回報的 abort;當在此重現中建立 cl::sycl::queue 不再導致 abort 時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

bug

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

主要語言
C++
星號
1.2k
分支
745
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

oneapi-src/oneAPI-samples 的其他 Issue

查看 oneapi-src/oneAPI-samples 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。