Skip to content

runtime error when using CUDA plugin #1240

@cgleggett

Description

@cgleggett

I'm building from git commit e6ce614, in a ubuntu 18.04 container on a centos7 host with an nvidia 2080 super GPU. All kernels throw exceptions upon execution:

Running on SYCL device GeForce RTX 2080 SUPER, driver version 440.33.01
terminate called after throwing an instance of 'cl::sycl::runtime_error'
what():  OpenCL API failed. OpenCL API returns: -30 (CL_INVALID_VALUE) -30 (CL_INVALID_VALUE)

gdb shows:

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff6977801 in __GI_abort () at abort.c:79
#2  0x00007ffff7ad8957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff7adeab6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff7adeaf1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff7aded24 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff71712b0 in cl::sycl::detail::context_impl::context_impl(std::vector<cl::sycl::device, std::allocator<cl::sycl::device> >, std::function<void (cl::sycl::exception_list)>, bool) () from /root/intel/git/build/lib/libsycl.so
#7  0x00007ffff720e478 in cl::sycl::context::context(std::vector<cl::sycl::device, std::allocator<cl::sycl::device> > const&, std::function<void (cl::sycl::exception_list)>, bool) () from /root/intel/git/build/lib/libsycl.so
#8  0x00007ffff720f173 in cl::sycl::context::context(cl::sycl::device const&, std::function<void (cl::sycl::exception_list)>, bool) ()
   from /root/intel/git/build/lib/libsycl.so
#9  0x00007ffff7231535 in cl::sycl::queue::queue(cl::sycl::device const&, std::function<void (cl::sycl::exception_list)> const&, cl::sycl::property_list const&) () from /root/intel/git/build/lib/libsycl.so
#10 0x00000000004041a9 in cl::sycl::queue::queue (this=0x7fffffffe150, SyclDevice=..., PropList=...)
    at /root/intel/git/build/lib/clang/11.0.0/include/CL/sycl/queue.hpp:74
#11 0x0000000000402ed5 in main (argc=1, argv=0x7fffffffe378) at ./simple-sycl-app.cpp:16

I'm using the same simple-sycl-app.cpp that @fwyzard gave in #1231

compilation was done with:

clang++ -fsycl -g -fsycl-targets=nvptx64-nvidia-cuda-sycldevice ./simple-sycl-app.cpp -o ssa

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcudaCUDA back-end

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions