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: 57f6cd0827]
このコミットが含まれているのは:
TomSang authored and GitHub committed 2021-10-06 17:27:39 +05:30
1 親 5542d66704
コミット c21a3f06ad
1ファイル変更
+1
+1
ファイルの表示
@@ -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));