From c21a3f06ada7635a4460d45d3ffcf223b418ebba Mon Sep 17 00:00:00 2001 From: TomSang Date: Wed, 6 Oct 2021 07:57:39 -0400 Subject: [PATCH] SWDEV-302654 - Fix cooperative_streams_half_capacity (#2376) Fix random failure of cooperative_streams_half_capacity by adding HIPCHECK(hipSetDevice(dev)) Change-Id: Ic4baf10a2c69f981aa7134a999c4779642852f53 [ROCm/hip commit: 57f6cd0827c1a4855268927d2fcf4dbef3d6d421] --- .../tests/src/runtimeApi/cooperativeGrps/cooperative_streams.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/hip/tests/src/runtimeApi/cooperativeGrps/cooperative_streams.cpp b/projects/hip/tests/src/runtimeApi/cooperativeGrps/cooperative_streams.cpp index 2300528397..cc93e825ba 100644 --- a/projects/hip/tests/src/runtimeApi/cooperativeGrps/cooperative_streams.cpp +++ b/projects/hip/tests/src/runtimeApi/cooperativeGrps/cooperative_streams.cpp @@ -238,6 +238,7 @@ int main(int argc, char** argv) { HIPCHECK(hipGetDeviceCount(&device_num)); for (int dev = 0; dev < device_num; ++dev) { /*************************************************************************/ + HIPCHECK(hipSetDevice(dev)); hipDeviceProp_t device_properties; HIPCHECK(hipGetDeviceProperties(&device_properties, dev));