CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   openmp with single processor (https://www.cfd-online.com/Forums/main/120691-openmp-single-processor.html)

Ravindra Shende July 12, 2013 06:23

openmp with single processor
 
Hi everyone,

I found that my openmp parallelized fortran code runs slower when run on one processor as compared to the same but unparallelized code. (I have used ifort compiler)

Can someone tell me why is this so?

Is it because the compiler itself tries to parallelise a serial code and when the code is parallel it doesn't?

flotus1 July 15, 2013 10:50

How high is the slowdown you observe for the parallel code?
A few percent could be explained by the overhead introduced by the parallelization.

FMDenaro July 15, 2013 10:51

how do you set the OS parameters NCPUS and OMP_NUM_THREADS?


All times are GMT -4. The time now is 18:49.