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

Compiler Switches

lklawrie
Beginner
348 Views
So, we have some old fixed format file that we still use... except now we try not to have it be fixed format -- a mix of language.

Recently, in the "release" configuration, it started compiling

!$
and
!d

lines as though they were code. (This was not true in debug configuration).

Any brilliant, quick ideas of what compiler switches would have done this? (before I go and compare the command lines).

As a different question, if some switches that usually appear in the "top box" in the IDE are put in the bottom box (where you put ones the IDE may not have options for), are they still used? I would guess so -- they just don't tick the IDE boxes?
0 Kudos
2 Replies
Steven_L_Intel1
Employee
348 Views
!$ I could see if you had OpenMP enabled, as this indicates an OpenMP continuation line. No idea why !d would be accepted. Can you attach a sample source file and build log?

Yes, if you add switches in Additional Options, they are used but don't get reflected elsewhere in the IDE.
0 Kudos
lklawrie
Beginner
348 Views
I might have been wrong about the !d -- I think OpenMP might be in the compiler options even though no OpenMP directives in this particular piece of code.

Yes, /QOpenMP is entered. (This is being done from a blanket generation using CMake and I guess blanket /QOpenMP used.) And must not be used in the debug configuration.

Thanks, Steve. It was a puzzler.
0 Kudos
Reply