![]() | ![]() | ![]() | Compiling & Execution | Contents | Index |
Compiling an MPI code on lince.ciemat.es is done by issuing one of the following commands:
mpif77 <source_file>
mpif90 <source_file>
mpicc <source_file>
where the respective scripts mpif77 etc. take care of linking the program with the adequate libraries (for more complicated programs, the use of a makefile is strongly suggested).
Execution of an MPI program (on lince.ciemat.es and in most other cases) is done via the command mpirun:
mpirun -np <no. of procs> <prog_name>
While for debugging purposes, an interactive execution might be adequate, one should use the available batch system (PBS) for longer jobs.
The correct path to the libraries and executables needs to be set like this in ~/.cshrc:
setenv LD_LIBRARY_PATH /opt/intel/lib:/usr/local/lib
setenv PATH
${PATH}:/opt/intel/bin:/opt/mpi/mpich-1.2.6-intel/bin
setenv MPICH_F77 ifort
setenv MPICH_CC icc
or for bash users in ~/.bashrc
export LD_LIBRARY_PATH=/opt/intel/lib:/usr/local/lib
export PATH=${PATH}:/opt/intel/bin:/opt/mpi/mpich-1.2.6-intel/bin
export MPICH_F77=ifort
export MPICH_CC=icc
Sample ~/.cshrc and ~/.bashrc are
available on lince.ciemat.es at /afs/test.ciemat.es/user/uhlmann/mpi2/misc/
Login to lince.ciemat.es is done as ssh -l cursoxx lince.ciemat.es, where "xx" stands for the two-digit number between 00 and 09. You can then set the display variable to your local value with export DISPLAY 10.10.111.xxx and set xhost + on your local machine in order to be able to export windows.
The status of the machine lince.ciemat.es can be monitored on this page.
markus.uhlmann AT ciemat.es
![]() | ![]() | ![]() | Compiling & Execution | Contents | Index |