From 4ec274c7d41c3b783b5ee268c54778e8952d85c5 Mon Sep 17 00:00:00 2001 From: taosang2 Date: Wed, 21 Feb 2024 18:14:23 -0500 Subject: [PATCH] FEAT-56803 - Fix ocltst slow issues Fix very slow issues of two ocltst test cases. Cherry pick https://gerrit-git.amd.com/c/compute/ec/clr/+/1009383 Change-Id: I0228c5e87cdec366993fd4afb1c25e7f8161c2c5 --- opencl/tests/ocltst/module/runtime/OCLMultiQueue.cpp | 5 +++++ opencl/tests/ocltst/module/runtime/OCLRTQueue.cpp | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/opencl/tests/ocltst/module/runtime/OCLMultiQueue.cpp b/opencl/tests/ocltst/module/runtime/OCLMultiQueue.cpp index 9f1cd1d5b1..0469ee20b8 100644 --- a/opencl/tests/ocltst/module/runtime/OCLMultiQueue.cpp +++ b/opencl/tests/ocltst/module/runtime/OCLMultiQueue.cpp @@ -42,7 +42,12 @@ static bool useGPU = true; static const cl_uint NumQueues = 8; // must be power of 2 static cl_uint NumElements = 4096; +#if EMU_ENV +static const cl_uint NumRuns = 16; +#else static const cl_uint NumRuns = 16384; +#endif + static const cl_uint ExecutionsPerQueue = 256; std::stringstream lerror; diff --git a/opencl/tests/ocltst/module/runtime/OCLRTQueue.cpp b/opencl/tests/ocltst/module/runtime/OCLRTQueue.cpp index 538db830cb..fbe2e62f13 100644 --- a/opencl/tests/ocltst/module/runtime/OCLRTQueue.cpp +++ b/opencl/tests/ocltst/module/runtime/OCLRTQueue.cpp @@ -30,8 +30,12 @@ static const size_t Iterations = 0x100; static const size_t IterationDivider = 2; static const size_t MaxBuffers = IterationDivider; -static const size_t BufSize = 0x800000; +#if EMU_ENV +static const size_t BufSize = 0x800; +#else +static const size_t BufSize = 0x800000; +#endif const static char* strKernel = "__kernel void factorial(__global uint* out) \n" "{ \n"