From ae1db3314522f181dabd95d5466bde92d319cbe1 Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Mon, 22 Feb 2021 18:00:24 -0500 Subject: [PATCH] SWDEV-272089 - Shorten memory test time memory/hipMalloc_MultiThreaded_MultiGpu costs too much time to finish. 1 GPU: about 1000s, 2 GPUs: about 2200s But Jenkin build need quick return and ctest will kill test that last 1500+s. So we need shorten the test time. Change-Id: I3db27a962808566ea135e3cbdefa66d373e2d369 [ROCm/clr commit: 657a515e603e94e5f38c79076ca26ef0967cfbe2] --- .../tests/src/runtimeApi/memory/hipMallocConcurrency.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMallocConcurrency.cpp b/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMallocConcurrency.cpp index 9118df3332..ee856d7d77 100644 --- a/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMallocConcurrency.cpp +++ b/projects/clr/hipamd/tests/src/runtimeApi/memory/hipMallocConcurrency.cpp @@ -85,11 +85,15 @@ Testcase Scenarios : /* Buffer size for alloc/free cycles */ #define BUFF_SIZE_AF (5*1024*1024) +/* You may change it for individual test. + * But default 100 is for quick return in Jenkin Build */ +#define NUM_DIV 100 + /* Max alloc/free iterations for smaller chunks */ -#define MAX_ALLOCFREE_SC (5000000) +#define MAX_ALLOCFREE_SC (5000000/NUM_DIV) /* Max alloc and pool iterations (TBD) */ -#define MAX_ALLOCPOOL_ITER (2000000) +#define MAX_ALLOCPOOL_ITER (2000000/NUM_DIV) /** * Validates data consitency on supplied gpu