diff --git a/projects/hip-tests/catch/unit/event/Unit_hipEventRecord.cc b/projects/hip-tests/catch/unit/event/Unit_hipEventRecord.cc index 30a808e328..022be7df2e 100644 --- a/projects/hip-tests/catch/unit/event/Unit_hipEventRecord.cc +++ b/projects/hip-tests/catch/unit/event/Unit_hipEventRecord.cc @@ -100,6 +100,11 @@ TEST_CASE("Unit_hipEventRecord") { HIP_CHECK(hipMemcpy(A_d, A_h, Nbytes, hipMemcpyHostToDevice)); HIP_CHECK(hipMemcpy(B_d, B_h, Nbytes, hipMemcpyHostToDevice)); + // Warmup + HipTest::launchKernel(HipTest::vectorADD, blocks, 1, 0, 0, + static_cast(A_d), static_cast(B_d), + C_d, N); + HIP_CHECK(hipDeviceSynchronize()); for (int i = 0; i < iterations; i++) { //--- START TIMED REGION long long hostStart = HipTest::get_time();