Skip to content

Commit 8a0e740

Browse files
committed
Add error check after launching delay kernel
1 parent 899b91f commit 8a0e740

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/catch/include/utils.hh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ inline void LaunchDelayKernel(const std::chrono::milliseconds interval, const hi
8484
// Clock rate is in kHz => number of clock ticks in a millisecond
8585
HIP_CHECK(hipDeviceGetAttribute(&ticks_per_ms, hipDeviceAttributeClockRate, 0));
8686
Delay<<<1, 1, 0, stream>>>(interval.count(), ticks_per_ms);
87+
HIP_CHECK(hipGetLastError());
8788
}
8889

8990
template <typename... Attributes>

0 commit comments

Comments
 (0)