oneapi-src / oneapi-src/oneAPI-samples

Crash when creating cl::sycl::queue

Open
#947 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
1.2k
Forks
745
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the trivial main.cpp reproduction in the issue and run it under Ubuntu 22.04 after compiling with dpcpp and initializing /opt/intel/oneapi/setvars.sh. Investigate the reported abort in gmm_client_context.cpp; done means creating cl::sycl::queue no longer aborts for this reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.