Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

How to compile with OpenMP?

xu__lu
Beginner
106 Views

I am a new user of Intel Fortran. I have some problems when trying to use openMP in Intel Fortran.

the Official User guide states that to add OpenMP* support to applications, do the following:

1.Add the appropriate OpenMP* directives to your source code.

2.Compile the application with the Qopenmp (Windows) or qopenmp (Linux* and macOS*) option.

I understand the first step. but how should I do the second step? Currently I use  "Debug → start without Debugging” buttons to run my code. do I always have to use a cmd to compile the applications if I want to incorporate OpenMP (which I failed since I dont know the path that I should specify)?

I'm also wondering whether I need to install some external openMp packages before I do the above steps

Any hint or suggestion is highly appreciated. Thanks in advance

Lu

0 Kudos
1 Reply
Steve_Lionel
Black Belt Retired Employee
106 Views

It sounds as if you're developing inside Visual Studio on Windows. If so, the proper forum for that would be https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows

In Visual Studio, right click on the project, select Properties. Then select Fortran > Language. Change the property "Process OpenMP Directives" to "Generate parallel code:, click OK. Then rebuild your project before running. You do not need to install anything separately.

Reply