Showing results for 
Search instead for 
Did you mean: 

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

Eventually we will support

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.

Retired 12/31/2016
0 Kudos