From c6dd7c96789aef8ed6d9cfca0c35b4c9431e8fc9 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Thu, 18 Apr 2019 07:35:06 +0530 Subject: [PATCH] Fix D2DAsync test [ROCm/clr commit: f1dc0171672872b35999c3afd684d52766253242] --- .../hipamd/tests/src/runtimeApi/memory/hipMemcpyDtoDAsync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMemcpyDtoDAsync.cpp b/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMemcpyDtoDAsync.cpp index 2d1a591e73..13eca9c24d 100644 --- a/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMemcpyDtoDAsync.cpp +++ b/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMemcpyDtoDAsync.cpp @@ -58,8 +58,8 @@ int main() { HIPCHECK(hipDeviceSynchronize()); HipTest::checkVectorADD(A_h, B_h, C_h, N); - HIPCHECK(hipStreamCreate(&s)); HIPCHECK(hipSetDevice(1)); + HIPCHECK(hipStreamCreate(&s)); HIPCHECK(hipMemcpyDtoDAsync((hipDeviceptr_t)X_d, (hipDeviceptr_t)A_d, Nbytes, s)); HIPCHECK(hipMemcpyDtoDAsync((hipDeviceptr_t)Y_d, (hipDeviceptr_t)B_d, Nbytes, s));