oneAPI-samples
oneAPI-samples copied to clipboard
Crash when creating cl::sycl::queue
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
Could you build the compiler from source ?
https://github.com/intel/llvm https://intel.github.io/llvm-docs/GetStartedGuide.html