From 69b0429a5e881ceb757e02186f00636c5c7df8f2 Mon Sep 17 00:00:00 2001 From: Jason Tang Date: Wed, 7 Oct 2020 11:37:21 -0400 Subject: [PATCH] Add hipStreamSynchronize to hipModuleLoadDataMultThreadOnMultGPU test hipStreamDestroy() by definition doesn't guarantee waiting for all stream operations. Change-Id: Ibfd21c48d71741ebcbcb9898c8b5ac235bdc570b [ROCm/hip commit: 2299459ce0ec19ce3c77a9e03112d03852c5bd81] --- .../runtimeApi/module/hipModuleLoadDataMultThreadOnMultGPU.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreadOnMultGPU.cpp b/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreadOnMultGPU.cpp index 6f649708b7..e83083fd55 100644 --- a/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreadOnMultGPU.cpp +++ b/projects/hip/tests/src/runtimeApi/module/hipModuleLoadDataMultThreadOnMultGPU.cpp @@ -94,6 +94,8 @@ void run(const std::vector& buffer, int deviceNo) { HIP_LAUNCH_PARAM_END}; HIPCHECK(hipModuleLaunchKernel(Function, 1, 1, 1, LEN, 1, 1, 0, stream, NULL, (void**)&config)); + HIPCHECK(hipStreamSynchronize(stream)); + HIPCHECK(hipStreamDestroy(stream)); HIPCHECK(hipModuleUnload(Module));