Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
9 Views

Detecting compiler version in code

Is there any way to detect and output the Intel compiler version in ifort code (similar to the way you can get the MKL version using mkl_get_version_string​)?

 

0 Kudos
1 Reply
Highlighted
9 Views

Eventually we will support the Fortran 2008 COMPILER_VERSION module intrinsic function. For now there's the preprocessor variable __INTEL_COMPILER which will have a value of the form 1700 (for 17.0). You will need to enable the /fpp option to use these. See the documentation topic "Preprocessor symbols > predefined" for more info.

0 Kudos