From b163d94f6ee98c0e7ee16cc7b0ec071a956f841f Mon Sep 17 00:00:00 2001 From: Dmitriy Sobolev Date: Thu, 25 Feb 2021 14:00:07 +0300 Subject: Reduce number of elements to scan due to taking too much time when testing (#142) * Reduce number of elements to scan because of taking too much time * Do not change number of elements when using release mode Signed-off-by: Sobolev, Dmitriy --- test/parallel_api/numeric/numeric.ops/scan.pass.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/parallel_api/numeric/numeric.ops/scan.pass.cpp b/test/parallel_api/numeric/numeric.ops/scan.pass.cpp index 22a8acfa1a5d..3c302b07b4f4 100644 --- a/test/parallel_api/numeric/numeric.ops/scan.pass.cpp +++ b/test/parallel_api/numeric/numeric.ops/scan.pass.cpp @@ -159,7 +159,14 @@ test_with_plus(T init, T trash, Convert convert) } #if _ONEDPL_BACKEND_SYCL && !_ONEDPL_FPGA_DEVICE - unsigned long n = 100000000; + // testing of large number of items may take too much time in debug mode + unsigned long n = +#if PSTL_USE_DEBUG + 70000000; +#else + 100000000; +#endif + Sequence in(n, convert); Sequence expected(in); Sequence out(n, [&](int32_t) { return trash; }); -- cgit v1.2.3-65-gdbad