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

OpenMP compiler settings

a_leonard
Novice
511 Views

I have a program that produces different results when compiled with /Qopenmp, even with no OpenMP directives in the source code.  I have already fixed a couple of variables that were not set before they were used and an array that was not declared the right size, but still have differences in some models.  These models may not be stable, but I'm trying to rule out any other complier settings that could change the results.  The help tells me that the OpenMP option also sets the automatic option.  Are there any other compiler settings that are changed by /Qopenmp?

0 Kudos
1 Reply
Steven_L_Intel1
Employee
511 Views

The /automatic option is the most likely cause of differences, as this uses stack-allocation instead of static allocation.  If you have uninitialized variables, this will change the program's behavior. There really aren't any other effects.

0 Kudos
Reply