Skip to content

Commit

Permalink
Added taskwait, fixed task threshold and extended tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sterrettm2 committed Oct 1, 2024
1 parent c61ce8f commit 13ea0fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/xss-common-keyvaluesort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,14 @@ X86_SIMD_SORT_INLINE void xss_qsort_kv(
keys, indexes, 0, arrsize - 1, maxiters, task_threshold);
}
else {
kvsort_<keytype, valtype>(
keys, indexes, 0, arrsize - 1, maxiters, 0);
kvsort_<keytype, valtype>(keys,
indexes,
0,
arrsize - 1,
maxiters,
std::numeric_limits<arrsize_t>::max());
}
#pragma omp taskwait
#else
kvsort_<keytype, valtype>(keys, indexes, 0, arrsize - 1, maxiters, 0);
#endif
Expand Down
4 changes: 4 additions & 0 deletions tests/test-keyvalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class simdkvsort : public ::testing::Test {
simdkvsort()
{
std::iota(arrsize.begin(), arrsize.end(), 1);
arrsize.push_back(10'000);
arrsize.push_back(100'000);
arrsize.push_back(1'000'000);

arrtype = {"random",
"constant",
"sorted",
Expand Down

0 comments on commit 13ea0fd

Please sign in to comment.