Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

meaning of openmp compiler options

John_Young
New Contributor I
693 Views
Hi,

I see two openmp-related compiler option, but I cannot determine what each one does? In VisualStudio, option /assume:[no]cc_omp is listed under the Fortran-PreProcessor propery tab as "OpenMP Conditional Compilation". The other option, /Qopenmp-stubs, is listed under the Fortran-Language property tab as "Process OpenMP Directives. How are these two options related? Do you need both on for an OpenMP code to run?

Thanks,
John
0 Kudos
1 Reply
Wendy_Doerner__Intel
Valued Contributor I
693 Views
To run OpenMP code you just need the /Qopenmp option, which is Language > Process OpenMP Directives in the Microsoft Visual Studio IDE. The other switches youmention would not be needed to compile OpenMP code.

The /assume:[no]cc_omp is an option to allow conditional compilation of Fortran code (not necessarily Openmp directives) depending on whether the /Qopenmp is specfied.

The /Qopenmp-stubs is used to add the openmp stub library to the link line so that if you want to run your OpenMP code serially it will work.

The best resource to learn more about switches in the IDE or command line is our documentation which is installed on your system on the Start Menu under our product or posted here:

http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/fortran/win/index.htm

------

Wendy

Attaching or including files in a post

0 Kudos
Reply