![]() |
![]() |
||||
![]() |
![]() |
![]() |
![]() |
||
|
Aquila - Compiling programs The following compilers are provided on Aquila. They should all be accessible, with the default path provided once a choice has been made for the $COMPILER environment variable in your .cshrc.aquila file. If you are unsure about how do do this, refer to the Getting Started section of this User Guide.
NOTE: You may find that some programs will only compile, or will run faster, using certain compilers, so you may want to try them all. Check the man pages and the Documentation section of this User Guide for details on usage and options for each compiler. OpenMP Programs OpenMP directives for shared memory parallel programming are supported by the Intel compilers. You will need to pass the -openmp flag to the compiler, for example: icc -openmp -o MyOMPProgram MyOMPProgram.c NOTE: You will then also have to set the environment variable $OMP_NUM_THREADS to be equal to the number of processors you wish to run on. See the section on Running Jobs in this User Guide. MPI Programs MPI programs can be compiled using mpicc (for C programs), mpiCC (C++), mpif77 (Fortran 77) or mpif90 (Fortran 90). This uses the underlying Compiler Suite that has been set to the $COMPILER environment variable in your .cshrc.aquila file. This could be one of gnu|intel. You will also need to link the MPI library in to your program, for example: icc -o MyMPIProgram MyMPIProgram -lmpi General Tips and Information
|
| SAPAC SITE MAP |