From ae391b32111384a6e669058a0f2d178d83ea956e Mon Sep 17 00:00:00 2001 From: Konstantin Pyzhov Date: Fri, 3 May 2019 05:43:30 -0400 Subject: [PATCH] hipMultiThreadDevice test: Reduced maximum number of created HIP streams on Windows. [ROCm/hip commit: e29c9d50a6e3fef14c69912e33211ea3d8e2bb8f] --- .../src/runtimeApi/multiThread/hipMultiThreadDevice.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/projects/hip/tests/src/runtimeApi/multiThread/hipMultiThreadDevice.cpp b/projects/hip/tests/src/runtimeApi/multiThread/hipMultiThreadDevice.cpp index b95fb4b416..249fbeb792 100644 --- a/projects/hip/tests/src/runtimeApi/multiThread/hipMultiThreadDevice.cpp +++ b/projects/hip/tests/src/runtimeApi/multiThread/hipMultiThreadDevice.cpp @@ -9,6 +9,11 @@ #include "hip/hip_runtime_api.h" #include "test_common.h" +#ifdef _WIN32 +#define MAX_BURST_SIZE 40 +#else +#define MAX_BURST_SIZE 100 +#endif // Create a lot of streams and then destroy 'em. void createThenDestroyStreams(int iterations, int burstSize) { @@ -50,8 +55,8 @@ void waitStreams(int iterations) { // Some create many queue, some not many. // void multiThread_pyramid(bool serialize, int iters) { - printf("%s creating %d streams\n", __func__, iters * 100); - std::thread t1(createThenDestroyStreams, iters * 1, 100); + printf("%s creating %d streams\n", __func__, iters * MAX_BURST_SIZE); + std::thread t1(createThenDestroyStreams, iters * 1, MAX_BURST_SIZE); if (serialize) { t1.join(); printf("t1 done\n");