@@ -45,10 +45,10 @@ int main() {
45
45
}
46
46
47
47
// Get native OpenCL handles
48
- auto ocl_platform = Platform. get_native <backend::opencl>();
49
- auto ocl_device = Device. get_native <backend::opencl>();
50
- auto ocl_context = Context. get_native <backend::opencl>();
51
- auto ocl_queue = Queue. get_native <backend::opencl>();
48
+ auto ocl_platform = get_native<backend::opencl>(Platform );
49
+ auto ocl_device = get_native<backend::opencl>(Device );
50
+ auto ocl_context = get_native<backend::opencl>(Context );
51
+ auto ocl_queue = get_native<backend::opencl>(Queue );
52
52
auto ocl_buffers = get_native<backend::opencl>(Buffer);
53
53
#ifdef SYCL2020_CONFORMANT_APIS
54
54
assert (ocl_buffers.size () == 1 );
@@ -68,10 +68,10 @@ int main() {
68
68
#endif
69
69
70
70
// Check native handles
71
- assert (ocl_platform == PlatformInterop. get_native <backend::opencl>());
72
- assert (ocl_device == DeviceInterop. get_native <backend::opencl>());
73
- assert (ocl_context == ContextInterop. get_native <backend::opencl>());
74
- assert (ocl_queue == QueueInterop. get_native <backend::opencl>());
71
+ assert (ocl_platform == get_native<backend::opencl>(PlatformInterop ));
72
+ assert (ocl_device == get_native<backend::opencl>(DeviceInterop ));
73
+ assert (ocl_context == get_native<backend::opencl>(ContextInterop ));
74
+ assert (ocl_queue == get_native<backend::opencl>(QueueInterop ));
75
75
assert (ocl_buffers == get_native<backend::opencl>(BufferInterop));
76
76
77
77
return 0 ;
0 commit comments