728x90
From : https://www.webmo.net/support/ifort11.html
ntel Fortran Compiler Installation Instructions for Linux |
- Obtain Intel Fortran Compiler
The Intel Fortran Compiler Professional Edition for Linux is a commercial software product available for commercial or academic purchase. This compiler comes with the Intel Math Kernal Library (MKL) for optimized floating point operations. One can also purchase the Fortran compiler as part of the Intel Compiler Suite Professional Edition for Linux that contains both the Fortran and the C/C++ Professional Compilers. However, Intel also offers a free personal non-commercial unsupported version that is identical to the commerical version. Upon registering for the free unsupported version, you will be sent an email message with download information and an attached license file. Download the latest version of the compiler for your architecture (32-bit Linux = IA-32; 64-bit Linux = Intel64; both = IA-32/Interl64), for example l_cprof_p_11.1.056.tgz (488 MB). - Extract the Intel Fortran Compiler tar file into a new directory
- # tar xzf l_cprof_p_11.1.056.tgz
- Install license file
- # mkdir -p /opt/intel/licenses
# cp -p NCOM_L_CMP__?????????????.lic /opt/intel/licenses/ - Install the Intel Fortran Compiler
- # cd l_cprof_p_11.1.056
# ./install.sh
Ignore warnings about
No compatible Java Runtime Environment (JRE) found
operating system type is not supported - Clean up
- # cd ..
# rm -rf l_cprof_p_11.1.056
# exit - Compile and link a program
- $ cd ~
$ mkdir test
$ cd test
$ source /opt/intel/Compiler/11.1/056/bin/ifortvars.sh intel64
$ ifort -c hello.f
$ ifort -o hello hello.o
$ ./hello - Some useful compiler switches
- -w ignore warnings (very useful for fortran77 code)
-Vaxlib link vax compatibility library - Documentation
For quick help on compiler options- $ man ifort
- /opt/intel/Compiler/11.1/056/Documentation/en_US/getting_started_f.pdf
/opt/intel/Compiler/11.1/056/Documentation/en_US/documentation_f.htm - Workarounds
- If necessary for executables to run, add ifort libraries to dynamic linker list
- # vi /etc/ld.so.conf
add the following lines to this file
/opt/intel/Compiler/11.1/056/lib/intel64
/opt/intel/Compiler/11.1/056/mkl/lib/em64t
# /sbin/ldconfig - Alternatively, if library files cannot be found, define the LD_LIBRARY_PATH environmental variable to define their location, for example
- $ export LD_LIBRARY_PATH=/opt/intel/Compiler/11.1/056/lib/intel64:/opt/intel/Compiler/11.1/056/mkl/lib/em64t
- If necessary for executables to run, add ifort libraries to dynamic linker list
- Notes
- The Intel C/C++ Compiler Professional Edition for Linux can be installed in a completely analogous fashion
Copyright © 2009, WebMO, LLC, all rights reserved.
300x250