You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENTRY(cublasInit, "this functionality is redundant in SYCL.")
9
10
ENTRY(cublasShutdown, "this functionality is redundant in SYCL.")
10
11
ENTRY(cublasGetError, "this functionality is redundant in SYCL.")
@@ -42,4 +43,8 @@ ENTRY(cudaProfilerStop, "SYCL currently does not support this fun
42
43
ENTRY(cuFuncSetAttribute, "SYCL currently does not support setting kernel function attributes")
43
44
ENTRY(cuGetExportTable, "SYCL does not provide a standard API to export internal runtime or driver API. Check and implement the functionality corresponding to the function of the first parameter `const void **table` populated by the API.")
44
45
46
+
ENTRY(cuDevicePrimaryCtxSetFlags_v2, "SYCL currently does not support setting device context flags.")
47
+
ENTRY(cuDevicePrimaryCtxGetState, "SYCL currently does not support querying device context flags.")
48
+
45
49
ENTRY(cudaGraphicsResourceSetMapFlags, "this functionality is deprecated in DX12 and hence is not supported in SYCL.")
Copy file name to clipboardExpand all lines: clang/test/dpct/driver_context.cu
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,47 @@ int main(){
43
43
// CHECK-NEXT: */
44
44
cuDevicePrimaryCtxRelease(device);
45
45
46
+
// CHECK: unsigned int flags = 0;
47
+
// CHECK-NEXT: flags = 0;
48
+
// CHECK-NEXT: flags = 0;
49
+
unsignedint flags = CU_CTX_BLOCKING_SYNC;
50
+
flags = CU_CTX_SCHED_AUTO;
51
+
flags = CU_CTX_SCHED_YIELD;
52
+
53
+
#ifndef NO_BUILD_TEST
54
+
// CHECK: flags = 0;
55
+
#if (CUDA_VERSION >= 12010)
56
+
flags = CU_CTX_COREDUMP_ENABLE;
57
+
#else
58
+
flags = CU_CTX_BLOCKING_SYNC;
59
+
#endif
60
+
61
+
// CHECK: flags = 0;
62
+
#if (CUDA_VERSION >= 12010)
63
+
flags = CU_CTX_USER_COREDUMP_ENABLE;
64
+
#else
65
+
flags = CU_CTX_SCHED_AUTO;
66
+
#endif
67
+
68
+
// CHECK: flags = 0;
69
+
#if (CUDA_VERSION >= 12030)
70
+
flags = CU_CTX_SYNC_MEMOPS;
71
+
#else
72
+
flags = CU_CTX_SCHED_YIELD;
73
+
#endif
74
+
#endif
75
+
int active;
76
+
77
+
// CHECK: /*
78
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuDevicePrimaryCtxSetFlags_v2 was removed because SYCL currently does not support setting device context flags.
79
+
// CHECK-NEXT: */
80
+
cuDevicePrimaryCtxSetFlags(device, flags);
81
+
82
+
// CHECK: /*
83
+
// CHECK-NEXT: DPCT1026:{{[0-9]+}}: The call to cuDevicePrimaryCtxGetState was removed because SYCL currently does not support querying device context flags.
0 commit comments