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

[SYCL] Fix event_profiling_info.cpp. #259

Merged
merged 1 commit into from
May 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions SYCL/Basic/event_profiling_info.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
//
// Looks like there is a bug in the test. There are rare sporadic failures of
// this test on different devices.
// REQUIRES: TEMPORARY_DISABLED
//
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
Expand Down Expand Up @@ -67,6 +63,8 @@ int main() {
event kernelEvent = kernelQueue.submit([&](sycl::handler &CGH) {
CGH.single_task<class EmptyKernel>([=]() {});
});
copyEvent.wait();
kernelEvent.wait();

assert(verifyProfiling(copyEvent) && verifyProfiling(kernelEvent));
}
Expand Down