EXSWHTEC-15 - Implement additional HipEventElapsedTime tests (#2903)
- Fix minor bug in helper test function in Unit_hipEvent.cc - Move negative test from Unit_hipEventElapsedTime_DifferentDevices to Unit_hipEventRecord_Negative - Add Unit_hipEventElapsedTime_NotReady_Negative test when function is called on event that has not been completed
This commit is contained in:
@@ -114,7 +114,8 @@ void test(unsigned testMask, int* C_d, int* C_h, int64_t numElements, hipStream_
|
||||
if (e == hipSuccess) assert(t == 0.0f);
|
||||
|
||||
// stop usually ready unless we skipped the synchronization (syncNone)
|
||||
HIP_ASSERT(hipEventElapsedTime(&t, stop, stop) == expectedStopError);
|
||||
e = hipEventElapsedTime(&t, stop, stop);
|
||||
HIP_ASSERT(e == expectedStopError);
|
||||
if (e == hipSuccess) assert(t == 0.0f);
|
||||
|
||||
e = hipEventElapsedTime(&t, start, stop);
|
||||
|
||||
Reference in New Issue
Block a user