Skip to content

Commit d88441c

Browse files
authored
[SYCL][CUDA][HIP] Disable profling for cuda / hip backend (#10044)
Profiling with HIP / CUDA backend may produce invalid results The added checks on backend type in this PR should be removed once #10042 is resolved.
1 parent 46046bd commit d88441c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sycl/test-e2e/Basic/event_profiling_info.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ int main() {
7070
copyEvent.wait();
7171
kernelEvent.wait();
7272

73-
assert(verifyProfiling(copyEvent) && verifyProfiling(kernelEvent));
73+
// Profiling with HIP / CUDA backend may produce invalid results.
74+
// The below check on backend type should be removed once
75+
// https://github.com/intel/llvm/issues/10042 is resolved.
76+
if (kernelQueue.get_backend() != sycl::backend::ext_oneapi_cuda &&
77+
kernelQueue.get_backend() != sycl::backend::ext_oneapi_hip)
78+
assert(verifyProfiling(copyEvent) && verifyProfiling(kernelEvent));
7479
}
7580

7681
for (size_t I = 0; I < Size; ++I) {

0 commit comments

Comments
 (0)