SWDEV-383201 - Sync for two memory tests (#184)
Unit_hipMemcpy_Positive_Synchronization_Behavior
Unit_hipMemcpyHtoD_Positive_Synchronization_Behavior
Change-Id: Ia0d188d93fde99b4400a6b5ab60fcde969c2405d
[ROCm/hip-tests commit: ce788b3cef]
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
429f98452b
commit
ff8637c332
@@ -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