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

Detecting compiler version in code

schulzey
New Contributor I
208 Views

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
Steven_L_Intel1
Employee
208 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
Reply