intel / llvm

Intel staging area for llvm.org contribution. Home for Intel LLVM-based projects.
Other
1.22k stars 730 forks source link

[SYCL][CUDA] error: no matching function for call to 'make_context' #9704

Open jinz2014 opened 1 year ago

jinz2014 commented 1 year ago

Building the file "interop-cuda-experimental.cpp" shows the error:

interop-cuda-experimental.cpp:91:19: error: no matching function for call to 'make_context'
  auto sycl_ctx = sycl::make_context<sycl::backend::ext_oneapi_cuda>(cu_ctx);

note: candidate template ignored: requirement 'detail::InteropFeatureSupportMap<sycl::backend::ext_oneapi_cuda>::MakeContext == true' was not satisfied [with Backend = sycl::backend::ext_oneapi_cuda]
make_context(

command: clang++ -std=c++17 -Wall -fsycl -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_70 -c interop-cuda-experimental.cpp -o interop-cuda-experimental.o

clang version 17.0.0 (https://github.com/intel/llvm.git 20c1857da00d99b388490f127059e0cad8717a93)

npmiller commented 1 year ago

Great catch!

make_context was disabled in the last CUDA context re-work here: https://github.com/intel/llvm/pull/8197

Not sure why the CI hasn't caught this, I'll update the test

jinz2014 commented 1 year ago

Ok. Thanks.

jinz2014 commented 11 months ago

Did you update the test ?

npmiller commented 11 months ago

Not yet, looking at it again I uncovered two bugs related to it, I'll open a PR with the test update when they are fixed:

jinz2014 commented 11 months ago

Thanks for the links.