Skip to content

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

Open
@jinz2014

Description

@jinz2014

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 20c1857)

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