The following lists some of the most basic problems you can encounter during application development and gives suggestions for troubleshooting:
Source
code does not compile correctly.
The Intel Fortran Compiler conforms to the Fortran 95, Fortran 90,
and Fortran 77 standards. If your source code fails to compile, check
for unsupported language extensions. Typically, these produce a syntax
error. The best way to resolve problems of this nature is to rewrite the
source code so it conforms to the Fortran standards and does not contain
unsupported extensions.
Program
does not run produce expected results.
Use test scenarios that ensure the output matches your expectations.
If a test fails, try compiling the files using the -O0
(Linux* and Mac OS*) or /Od
(Windows*) option, which turns
off the optimizer. If the test still fails, it is likely that the source
code contains a problem. If your program runs successfully with -O0 (Linux and Mac OS) or /Od
(Windows), but fails with the default -O2 (Linux
and Mac OS) or /O2 (Windows) , you need to determine
which file or files are causing the problem.
Program runs
slowly.
Use a tool like the VTune™
Performance Analyzer to determine where your program spends most of its
time. Such an analysis will show you which lines of your program are using
the most execution time. See the Optimizing
Applications book
for additional guidelines that will help you optimize performance and
gain speed.