OpenMP compiler settings

OpenMP compiler settings

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?

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today