Skip to content
Snippets Groups Projects
Commit fc15d7f3 authored by carlocamilloni's avatar carlocamilloni
Browse files

Merge branch 'v2.3' into v2.4

parents ea7c9369 4561e11b
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,8 @@ unsigned OpenMP::getGoodNumThreads(const T*x,unsigned n) {
// to cache line boundary
unsigned m=n*sizeof(T)/(2*getCachelineSize());
unsigned numThreads=getNumThreads();
if(m>numThreads) m=numThreads;
if(m==0) m=1;
if(m>=numThreads) m=numThreads;
else m=1;
return m;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment