| Available Compilers | |||||||||||||||||||||||||
|
Note: on clusters where ifc_81 environment is installed, in order to run it, use the following command, this won't work on opteron:
On Opteron you should use- source /usr/local/intel/intel_fc_81/bin/ifortvars.sh (bash users)
- source /usr/local/intel/intel_fc_81/bin/ifortvars.csh (tcsh users)
- /opt/intel_fce_81/bin/ifortvars.sh (bash users)
- /opt/intel_fce_81/bin/ifortvars.csh (tcsh users)
| Compiler | C | C++ | F77 | F90/95 |
| GNU | gcc | g++ | g77 | g95 |
| Portland Group | pgcc | pgCC | pgf77 | pgf90 |
| Intel v7.x | icc | icc | ifc | ifc |
| Intel v8.x | icc | icc | ifort | ifort |
| C | icc|gcc|pgcc -o prog [options] prog.cc [linker options] |
| Fortran | ifc|g77|pgf90 -o prog [options] prog.f90 [linker options] |
| MPI wrappers | ||||||||||||||||||||
|
| OPTERON's MPI wrappers | ||||||||||||||||||||
|
| -xN |
generate specialized code to run exclusively on Intel Pentium 4 and compatible Intel processors. Using this option during compilation we found an improvement about 11% on our specific test |
| -O0 | Disable optimizations |
| -O1 | Enable optimizations, this is the default option which is used also without specificate it |
| -O3 | Enable optimizations plus more aggressive optimizations that may not improve performance for all programs |
| -static | Prevents linking with shared libraries |
| -ipo | Enable multi-file Interprocedural optimizations (between files) |
| -ip | Enable single-file Interprocedural optimizations (within files) |
| -ipo_separate | Create one object file for every source file (overrides -ipo[n]) |
| -tune pn4 | Optimize for Pentium(R) 4 processor (DEFAULT) |
| -xN -O3 -ip -static | This is the optimal solution. With those flags we obtained the best results running our specific test |
|
-xN -O3 -ipo -static -O3 -ipo_separate -static |
With this options enabled during compilation of our specific script we obtained a computing time of about 9% more then with the optimal solution |
|
-O0 -static -xN -O1 -ipo_separate -static |
With this options enabled during compilation of our specific script we obtained a computing time of about 25% more than with the optimal solution |
| -O1 -static -tune pn4 | With this options enabled during compilation of our specific script we had the worst results. About 80% more than with the optimal solution |
| -fast | Our test will not run if compiled this option |
(ifort/ifc/icc/gcc/...) -Wl,-rpath=/full/path/to/libdir/or
ld -rpath=/full/path/to/libdir/e.g.:
ifort_32 -Wl,-rpath=/usr/local/intel_fc_80/lib/when you run the code the research path of the libraries will be added without changing LD_LIBRARY_PATH or LD_RUN_PATH
ifort_64 -Wl,-rpath=/usr/local/intel_fce_80/lib/
gcc -m32 ...
ifort_32 ...
ifort_64 ...
