- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page