diff options
author | 2021-02-25 14:00:07 +0300 | |
---|---|---|
committer | 2021-02-25 14:00:07 +0300 | |
commit | b163d94f6ee98c0e7ee16cc7b0ec071a956f841f (patch) | |
tree | bc208f78642ff69383f665e40d208152c823f403 | |
parent | Async api extensions (#78) (diff) | |
download | llvm-project-b163d94f6ee98c0e7ee16cc7b0ec071a956f841f.tar.gz llvm-project-b163d94f6ee98c0e7ee16cc7b0ec071a956f841f.tar.bz2 llvm-project-b163d94f6ee98c0e7ee16cc7b0ec071a956f841f.zip |
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 <dmitriy.sobolev@intel.com>
-rw-r--r-- | test/parallel_api/numeric/numeric.ops/scan.pass.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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<T> in(n, convert); Sequence<T> expected(in); Sequence<T> out(n, [&](int32_t) { return trash; }); |