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

OpenMP: more or equal the defined value

parent 6ee3b2e3
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ 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>=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