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



[ROCm/hip commit: 856d4b5075]
这个提交包含在:
ROCm CI Service Account
2023-05-25 06:14:22 +05:30
提交者 GitHub
父节点 90aeea4edc
当前提交 7b3a57c9b9
@@ -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));