2021/05/21 Created
(* Up to 2 concurrent users of Intel Compiler)
This page introduces how to use Intel Compiler.
Please note that the contents of this page may contain some errors or deficiencies. If you notice them, please let the csgs2 manager know by email (Email: csgs-info [at] e.u-tokyo.ac.jp).
The executable files are in the paths below.
/opt/intel/bin/icc (C)
/opt/intel/bin/icpc (C++)
/opt/intel/bin/ifort (FORTRAN)
PATH and other environment variables required for Intel Compiler are set by the commands below.
$ source /opt/intel/bin/compilervars.sh (bash)
% source /opt/intel/bin/compilervars.csh (tcsh)
In the order from top to bottom : C language, C++ language, FORTRAN
No parallelization
$ icc [option] source_file
$ icpc [option] source_file
$ ifort [option] source_file
Automatic parallelization
$ icc [option] -parallel source_file
$ icpc [option] -parallel source_file
$ ifort [option] -parallel source_file
OpenMP
$ icc [option] -qopenmp source_file
$ icpc [option] -qopenmp source_file
$ ifort [option] -qopenmp source_file
Using the INTEL Math Kernel Library (MKL)
$ icc [option] -mkl source_file
$ icpc [option] -mkl source_file
$ ifort [option] -mkl source_file
Intel® C++ Compiler Classic Developer Guide and Reference
Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference