SWDEV-399104 - Fix hipMemcpy2DAsync_PinnedMemory.tst (#3231)

failure

- As per spec, hipMemset2D is async with respect to host when target memory is device memory
- Hence need to call hipDeviceSynchronize before changing device

Change-Id: I58e6efc9466233d80b8ba2c58c0c691c68827128
This commit is contained in:
ROCm CI Service Account
2023-05-25 06:14:22 +05:30
committad av GitHub
förälder d0448aa4c4
incheckning 856d4b5075
@@ -174,6 +174,7 @@ bool Memcpy2DAsync::Memcpy2DAsync_PinnedMemory_MultiGPU() {
HIPCHECK(hipHostMalloc(reinterpret_cast<void**>(&D_h), sizeElements));
AllocateMemory();
HIPCHECK(hipMemset2D(A_d, pitch_A, memsetval, NUM_W, NUM_H));
HIPCHECK(hipDeviceSynchronize());
HIPCHECK(hipSetDevice(1));
hipStream_t p_stream;
HIPCHECK(hipStreamCreate(&p_stream));