File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -4529,8 +4529,9 @@ pi_result piPluginInit(pi_plugin *PluginInit) {
4529
4529
_PI_CL (piProgramGetBuildInfo, cuda_piProgramGetBuildInfo)
4530
4530
_PI_CL (piProgramRetain, cuda_piProgramRetain)
4531
4531
_PI_CL (piProgramRelease, cuda_piProgramRelease)
4532
- _PI_CL (piextMemGetNativeHandle, cuda_piextMemGetNativeHandle)
4533
- _PI_CL (piextMemCreateWithNativeHandle, cuda_piextMemCreateWithNativeHandle)
4532
+ _PI_CL (piextProgramGetNativeHandle, cuda_piextProgramGetNativeHandle)
4533
+ _PI_CL (piextProgramCreateWithNativeHandle,
4534
+ cuda_piextProgramCreateWithNativeHandle)
4534
4535
// Kernel
4535
4536
_PI_CL (piKernelCreate, cuda_piKernelCreate)
4536
4537
_PI_CL (piKernelSetArg, cuda_piKernelSetArg)
Original file line number Diff line number Diff line change
1
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2
+ // RUN: %GPU_RUN_PLACEHOLDER %t.out
3
+ // REQUIRES: cuda
4
+
5
+ #include < CL/sycl.hpp>
6
+ #include < CL/sycl/backend/cuda.hpp>
7
+
8
+ int main () {
9
+ sycl::queue Queue{sycl::default_selector{}};
10
+ Queue.submit (
11
+ [](sycl::handler &CGH) { CGH.single_task <class TestKernel >([] {}); });
12
+
13
+ sycl::program Prog{Queue.get_context ()};
14
+ Prog.build_with_kernel_type <class TestKernel >();
15
+
16
+ auto NativeProgram = Prog.get_native <sycl::backend::cuda>();
17
+
18
+ assert (NativeProgram != 0 );
19
+
20
+ // TODO check program interop constructor, once it is available.
21
+
22
+ return 0 ;
23
+ }
You can’t perform that action at this time.
0 commit comments