fix recursion depth
This commit is contained in:
parent
75eb7efa11
commit
aa0ab7a4b1
@ -77,7 +77,7 @@ auto main(int argc, char *argv[]) -> int {
|
|||||||
auto t_par = std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1);
|
auto t_par = std::chrono::duration_cast<std::chrono::milliseconds>(t2 - t1);
|
||||||
fmt::print("\nSorted {} entries within {} ms in parallel on a system having {} threads and a recursion depth of {}"
|
fmt::print("\nSorted {} entries within {} ms in parallel on a system having {} threads and a recursion depth of {}"
|
||||||
"\nresulting in a total count of {} threads",
|
"\nresulting in a total count of {} threads",
|
||||||
dataset_seq.size(), t_par.count(), threads, max_depth, std::pow(2, max_depth));
|
dataset_seq.size(), t_par.count(), threads, max_depth, std::pow(2, max_depth + 1));
|
||||||
|
|
||||||
auto eq = (dataset_seq == dataset_par);
|
auto eq = (dataset_seq == dataset_par);
|
||||||
fmt::print("\nCheck whether sorted arrays are equal: {}", (eq) ? "Equal" : "not equal");
|
fmt::print("\nCheck whether sorted arrays are equal: {}", (eq) ? "Equal" : "not equal");
|
||||||
|
Loading…
Reference in New Issue
Block a user