Bonjour,
mon cluster est composé (pour l'instant) de 2 machines amd64 contenant le
système debian 2.6 "version etch", le compilateur fortran d'intel(ifort) et
l'outil Open-mpi 1.3.
La connexion entre les 2 hôtes est bien établie et sécurisée grâce à ssh.
Sachant que j'ai mis le répertoire "openmpi-1.3" -qui contient les fichiers
d'installation- sous opt avant de l'installer. Après la compilation avec
"mpif" du code d'essai et l'exécution, j'obtient le message suivant:
==================================================
debian1:/home/toto/Desktop# mpirun --prefix /opt/openmpi-1.3 -np 2 ./a.out
root@debian1's password:
bash: /opt/openmpi-1.3/bin/orted: No such file or directory
--------------------------------------------------------------------------
A daemon (pid 11250) died unexpectedly with status 127 while attempting
to launch so we are aborting.
There may be more information reported by the environment (see above).
This may be because the daemon was unable to find all the needed shared
libraries on the remote node. You may set your LD_LIBRARY_PATH to have the
location of the shared libraries on the remote nodes and this will
automatically be forwarded to the remote nodes.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun noticed that the job aborted, but has no info as to the process
that caused that situation.
--------------------------------------------------------------------------
mpirun: clean termination accomplished
===================================================
Pour être plus clair, vous trouverez ci-joints:
* le contenu du "bash.bashrc" comprenant la déclaration des variables du
compilateur et du wrapper,
* le code à tester "essai2.f90",
* la procédure que j'ai suivi pour configurer open-mpi
Cordialement
Abderezak
stagiaire de master réseaux et système au lpmtm/CNRS
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac
# enable bash completion in interactive shells
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
#==============================================================================
#compilateur ifort
source /opt/intel/Compiler/11.0/074/bin/ifortvars.sh
PATH=$PATH:/opt/intel/Compiler/11.0/074/bin
export PATH
#debugger ifort
source /opt/intel/Compiler/11.0/074/bin/intel64/idbvars.sh
PATH=$PATH:/opt/intel/Compiler/11.0/074/bin/intel64
export PATH
#si ifort répond "cannot find g++"
export LC_ALL=C
#==============================================================================
#wrapper ifort
export PATH=/opt/intel/Compiler/11.0/074/bin:$PATH
#export
LD_LIBRARY_PATH=/opt/intel/Compiler/11.0/074/mkl/lib/em64t:$LD_LIBRARY_PATH
export
LD_LIBRARY_PATH=/usr/local/lib:/opt/intel/Compiler/11.0/074/lib/intel64:$LD_LIBRARY_PATH
export MANPATH=/opt/intel/Compiler/11.0/074/man:$MANPATH
! Filename: mpi_hello.f90
! Description: A parallel hello world program
PROGRAM HelloWorld
! include 'mpif.h'
use mpi
call mpi_init(ierr)
call mpi_comm_size(MPI_COMM_WORLD,npes, ierr)
call mpi_comm_rank(MPI_COMM_WORLD,irank,ierr)
print*,'Hello World! I am ',irank,' of ',npes
call mpi_finalize(ierr)
END PROGRAM
- J'ai téléchargé openmpi-1.3.tar.gz
- je l'ai décompressé et mis sous /opt/openmpi-1.3
- j'ai lancé la commande ./configure CC=gcc CXX=g++ F77=ifort FC=ifort
- puis la commande --enable orte.. (voir README dans le repértoire openmpi-1.3)
- make
- make all install
- j'ai déclaré le path de lib sur le "bash.bashrc" (ci-joint)
NB:
le répertoire openmpi-1.3 contient les fichiers:
AUTHORS Makefile.am VERSION config.log examples test
Doxyfile Makefile.in acinclude.m4 config.status libtool
INSTALL Makefile.man-page-rules aclocal.m4 configure ompi
LICENSE NEWS autogen.sh configure.ac opal
Makefile README config contrib orte