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

/MP compiler flag - does it work?

cdwk
Beginner
739 Views
Hi all,

i just got a new computer with 8 kernels in the cpu and it's cute. Projects in C++ that took some minutes to buildnow are compiled within 20 seconds because 8 source files can be compiled simultaneously!
But when i have to compile our FORTRAN projects they still take quite long.
I switched on the /MP compiler flag but that made no difference. The compiler still seems tobe compiling one file after the other instead of compiling them in parallel. And the task manager indicates a processor load of 12%.
So can anybody tell me if the /MP flag works at all? Or maybe some other flag(s) should / mustn'tbe used together with the /MP-flag.
Any help appreciated

Greetings, Robert
0 Kudos
1 Reply
Steven_L_Intel1
Employee
739 Views
/MP doesn't work well for Fortran because, unlike C, there is an ordering of the compilations. It will work if you have multiple projects to build them in parallel, so if you have a lot of sources you may be able to split them into static library projects that can be built in parallel.
0 Kudos
Reply