Skip to content

Commit

Permalink
restore hipevent test
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelesko committed Aug 29, 2024
1 parent a630099 commit a3670d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/catch/unit/event/Unit_hipEvent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void test(unsigned testMask, int* C_d, int* C_h, int64_t numElements, hipStream_

size_t sizeBytes = numElements * sizeof(int);

int count = 1500;
int count = 100;
int init0 = 0;
HIP_CHECK(hipMemset(C_d, init0, sizeBytes));
for (int i = 0; i < numElements; i++) {
Expand Down Expand Up @@ -120,8 +120,6 @@ void test(unsigned testMask, int* C_d, int* C_h, int64_t numElements, hipStream_
if (e == hipSuccess) assert(t == 0.0f);

e = hipEventElapsedTime(&t, start, stop);
printf("Event elapsed time status: %s\n", hipGetErrorName(e));
printf("Expected stop error: %s\n", hipGetErrorName(expectedStopError));
printf("Time: %f\n", t);
HIP_ASSERT(e == expectedStopError);
if (expectedStopError == hipSuccess) assert(t > 0.0f);
Expand Down

0 comments on commit a3670d2

Please sign in to comment.