Skip to content

Commit d73a4a5

Browse files
authored
[SYCLomatic] Migrate the cudaEventDefault to 0. (#2016)
Signed-off-by: Chen, Sheng S <[email protected]>
1 parent 9169d52 commit d73a4a5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/lib/DPCT/MapNames.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3900,6 +3900,7 @@ const MapNames::MapTy MapNames::MacrosMap{
39003900
{"__CUDA__", "SYCL_LANGUAGE_VERSION"},
39013901
{"CUFFT_FORWARD", "-1"},
39023902
{"CUFFT_INVERSE", "1"},
3903+
{"cudaEventDefault", "0"},
39033904
//...
39043905
};
39053906

clang/test/dpct/macro_test_enable_profiling.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
cudaGetLastError(); \
5959
cudaEventRecord(start); \
6060
}
61-
61+
//CHECK: const int eventFlags = 0;
62+
const int eventFlags = cudaEventDefault;
6263
// CHECK:#define CMC_PROFILING_END(lineno) \
6364
//CHECK-NEXT: if (CMC_profile) \
6465
//CHECK-NEXT: { \

0 commit comments

Comments
 (0)