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

Are there any known problems with Intel compiler?

Dohyeon_G_
Beginner
503 Views
 
Hello sir,
 
Now I am coding with PGI compiler but I am reviewing change my compiler to Intel Fortran from PGI, Are there any known problems or issues when I compile with my legacy source codes? If it is, could you provide that issues and how to resolve it?
Thanks in advance.
0 Kudos
2 Replies
mecej4
Honored Contributor III
503 Views

Every compiler has known problems and unknown problems, and the number of known problems can be quite large. In addition, your own legacy code can contain bugs that may or may not be detected by a given compiler. That is why you need to have test cases to run with known correct outputs, and a system for testing and accepting program outputs.

Your request for a universal cure for all program bugs will probably not be met in our lifetime.

0 Kudos
jimdempseyatthecove
Honored Contributor III
503 Views

Intel Visual Fortran permits you to run for a period of time in evaluation mode. This compiler is the production product (not crippled). The compiler has option to perform comprehensive code compliance checking which you may need to turn off in situations where the original source code relied on the original compiler to not enforce compliance checking. There are many options that can affect what the compiler is to do with your code.

The general procedure is to give it a try.

Make sure that the compiler is optioned correctly for your source code. Do not assume that the file type (extension) defines the format (fixed, variable, F77, F90, F95, F2003, other), use the option that expressly states the source formatting and specification vintage. You can remove these later should the default behavior be what you expressly state. (this may save you hours in trying to figure out that you needed the option in the first place).

From my limited experience, most of the portability issues center around

DATA statements
Continuation lines
Variable type qualifiers (1.0_8, verses 1.0D0, verses 1.0D+0, ...)
How unnamed COMMON blocks are handled
How uninitialized variables are handled
How (or if) statement functions are implemented
How (or if) argument checking between CALL and SUBROUTINE is made
ENTRY statements may be handled differently

Note, none of the above potential issues are "bugs" in the compiler.

Also, if you require fixed format source files.... **** assure you have no TAB characters, and assure your line lengths do not exceed 72 characters, or by option 132 characters ***

Do not assume that the options for PGI compiler are the same as for the Intel compiler.

Also, if your port involves moving from one platform to another, you may have issues with the API to library functions.

Jim Dempsey

0 Kudos
Reply