GNU compilers
The GNU compilers for C, C + + and Fortran 90 are installed on the cluster. To compile a program can use the following commands depending on the programming language used :
C
gcc programa.c -o ejecutable
C++
g++ programa.c -o ejecutable
Fortran90
gfortran programa.c -o ejecutable
Intel compilers
C
icc programa.c -o ejecutable
icc programa.c -o ejecutable
C++
icc programa.c -o ejecutable
icc programa.c -o ejecutable
Fortran77
ifort programa.c -o ejecutable
ifort programa.c -o ejecutable
Fortran90
ifort programa.c -o ejecutable
OpenMPI
ifort programa.c -o ejecutable
OpenMPI
C
mpicc programa.c -o nombreEjecutable
C++
mpic++ programa.cpp -o nombreEjecutable
Fortran90
mpif90 programa.f90 -o nombreEjecutable
Intel OpenMPI
By default GNU compilers are used together with MPI. To use Intel compilers then you must run the following commands for the different cases. This must be done in each console to open in the cluster. If you want to always use the Intel compilers then you must add these lines in the file. Bashrc located in your home directory
C
export OMPI_MPICC=icc
c++
export OMPI_MPICXX=icchttp://m.web.ua.es/es/cluster-iuii/bibliotecas/librerias-paralelas.html
contribution for this week
http://elisa.dyndns-web.com/progra/Compile
It shows how many libraries are compiled as is also different lenjuages
It shows how many libraries are compiled as is also different lenjuages
1 comentarios:
Imagino que esté también está en el Wiki en algún lado o que por lo menos pronto estará.
Publicar un comentario