Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit ff1ffce

Browse files
authored
Fix event_profiling_info.cpp. (#259)
Event must be in "complete" state to enable profiling queries
1 parent c78a789 commit ff1ffce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

SYCL/Basic/event_profiling_info.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
//
3-
// Looks like there is a bug in the test. There are rare sporadic failures of
4-
// this test on different devices.
5-
// REQUIRES: TEMPORARY_DISABLED
6-
//
73
// RUN: %HOST_RUN_PLACEHOLDER %t.out
84
// RUN: %CPU_RUN_PLACEHOLDER %t.out
95
// RUN: %GPU_RUN_PLACEHOLDER %t.out
@@ -67,6 +63,8 @@ int main() {
6763
event kernelEvent = kernelQueue.submit([&](sycl::handler &CGH) {
6864
CGH.single_task<class EmptyKernel>([=]() {});
6965
});
66+
copyEvent.wait();
67+
kernelEvent.wait();
7068

7169
assert(verifyProfiling(copyEvent) && verifyProfiling(kernelEvent));
7270
}

0 commit comments

Comments
 (0)