Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/svs/lib/threads/threadpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class OMPThreadPool {
public:
explicit OMPThreadPool(size_t num_threads) { omp_set_num_threads(num_threads); }

size_t size() const { return omp_get_num_threads(); }
size_t size() const { return omp_get_max_threads(); }

void parallel_for(std::function<void(size_t)> f, size_t n) {
#pragma omp parallel for
Expand Down
Loading