SWDEV-383201 - Sync for two memory tests (#184)
Unit_hipMemcpy_Positive_Synchronization_Behavior Unit_hipMemcpyHtoD_Positive_Synchronization_Behavior Change-Id: Ia0d188d93fde99b4400a6b5ab60fcde969c2405d
This commit is contained in:
committed by
GitHub
parent
4f9ba54fb1
commit
ce788b3cef
@@ -237,6 +237,7 @@ void MemcpySyncBehaviorCheck(F memcpy_func, const bool should_sync,
|
||||
LaunchDelayKernel(std::chrono::milliseconds{100}, kernel_stream);
|
||||
HIP_CHECK(memcpy_func());
|
||||
if (should_sync) {
|
||||
HIP_CHECK(hipStreamSynchronize(kernel_stream));
|
||||
HIP_CHECK(hipStreamQuery(kernel_stream));
|
||||
} else {
|
||||
HIP_CHECK_ERROR(hipStreamQuery(kernel_stream), hipErrorNotReady);
|
||||
|
||||
Reference in New Issue
Block a user