Skip to content

Commit

Permalink
uint unknown on Windows, bah.
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesDuvert committed Aug 29, 2023
1 parent 783b3fa commit 0757621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basegdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ int parallelize(SizeT nEl, int modifier) {
// here we have more than 1 thread, so n operations will be divided between nt threads. It becomes inefficient if nt is large, to start so many threads for diminishing returns.
// I propose to enable as many threads as necessary so that each thread will compute at least CpuTPOOL_MIN_ELTS:
if (CpuTPOOL_MIN_ELTS < 1) return CpuTPOOL_NTHREADS; // the user did not understand IDL's doc about threadpools?.
uint nchunk = nEl / CpuTPOOL_MIN_ELTS;
int nchunk = nEl / CpuTPOOL_MIN_ELTS;
nchunk++; //to be sure

Check warning on line 861 in src/basegdl.cpp

View check run for this annotation

Codecov / codecov/patch

src/basegdl.cpp#L860-L861

Added lines #L860 - L861 were not covered by tests
if (nThreads > nchunk) nThreads = nchunk;
// std::cerr << nThreads;
Expand Down

0 comments on commit 0757621

Please sign in to comment.