Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28469 Discussions

OpenMP in a Intel Core 2 Quad (processor X5355)

verdolaga
Beginner
355 Views

I have a problem when i try parallelization with OpenMP on a Intel Core 2 Quad(processor X5355)

when i'm using a single proccessor the running time is : 48 minutes, but if i use four proccessors the running time is 23 minutes, but if use 5, 6,7,8 the running time is the same 21 MIN !!!... when i'm using 5 to 8 processors the paralelizacion time does not decreases ...

what is the problem..??
0 Kudos
2 Replies
Bonnie_A_Intel
Employee
355 Views

For the multi-processor system, did you use the OMP_NUM_THREADS setting before you ran your executable, as in this example?

> set OMP_NUM_THREADS=4

0 Kudos
Steven_L_Intel1
Employee
355 Views
Setting that environment variable is usually not necessary, as it defaults to the number of execution units (cores). My guess is that the program and its data simply don't scale past four threads, based on size of data, work done in each thread, etc.
You can get more information by running it under Intel Thread Profiler and see what it's doing.
0 Kudos
Reply