|
Organization of the Intel C/C++ Compilers |
|
The Intel Compilers must be setup using a script to install important libraries paths and executable paths. The Intel C/C++ compiler version which is installed is 10.0.026. Both the 64-bit and the 32-bit version are available.
| Intel Compiler Architecture/User Shell |
To Setup this version |
| 64-bit/bourne shell |
source /usr/local/profile.d/iccvars.sh |
| 64-bit/tcsh |
source /usr/local/profile.d/iccvars.csh |
| 32-bit/bourne shell |
source /usr/local/profile.d/iccvars_x86.sh |
| 32-bit/tcsh |
source /usr/local/profile.d/iccvars_x86.csh |
For most users, the 64-bit version will be used. The 32-bit versions are provided as a resource in the event a 32-bit library must be linked against. After setup, icc is the intel c-compiler and icpc is the intel c++ compiler.
Some Useful Compiler Options
- To generate highly optimized code, try compiling with "-03" or "-fast" flags.
- Use "-w" to disable all warnings, "-Wall" to enable all warnings.
- "-openmp" to generate code based on OpenMP directives
- "-static" prevents linking with shared libraries (everything is statically linked)
- setup the intel compilers and issue icc --help to see the full list of options.
|