|
From: Soumya <sou...@gm...> - 2012-07-19 16:31:16
|
*Hello, I am trying to run valgrind in parallel, but somehow I am unable to. At times, it says that it does not detect the command, when I use: CMD = valgrind - -tool = memcheck $HOME/TSDFT/tsdtf it does not recognize the command. And, sometimes, it says that valgrind can be run only on 1 processor. Is there a fix? Please find below my parallel job script with MPIEXEC.* *Thanks a lot. Best Regards, Alex* * * #!/bin/bash #$ -cwd #$ -N short_eq_32 #$ -pe openmpi 32 ############################## ##################### source /usr/share/Modules/init/sh export -n -f module # Load the environment modules for this job (the order may be important): module add intel/intel-12.1_intel64 module add mpi/openmpi-1.4.3-intel-12.1 ################################################### # Set the environment variables: MPIEXEC=$OPENMPI/bin/mpiexec # OPENMPI is set by the mpi/openmpi-1.4.3:rt OMP_NUM_THREADS=1 export OMPI_MCA_btl='openib,sm,self' # export OMPI_MCA_orte_process_binding=core ############## # BEGIN DEBUG # Print the SGE environment on master host: echo "================================================================" echo "=== SGE job JOB_NAME=$JOB_NAME JOB_ID=$JOB_ID" echo "================================================================" echo DATE=`date` echo HOSTNAME=`hostname` echo PWD=`pwd` echo "NSLOTS=$NSLOTS" echo "PE_HOSTFILE=$PE_HOSTFILE" cat $PE_HOSTFILE echo "Machinefile created by openmpi PE $TMPDIR/machines:" cat $TMPDIR/machines echo "================================================================" echo "Running environment:" env echo "================================================================" echo "Loaded environment modules:" module list 2>&1 echo # END DEBUG ############## ################################################### # The command to run with mpiexec: # CMD=$HOME/bin/xhpl-OpenMPI_Intel-12.1 *CMD=$HOME/TSDFT/tsdtf* ARGS='' ############## # BEGIN DEBUG # Check that the libraries are available (on the master host): echo "ldd $CMD" ldd $CMD echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" # Check the number of threads used by OpenMP: echo "OMP_NUM_THREADS=$OMP_NUM_THREADS" # END DEBUG ############## # The MPI command to run: MPICMD="$MPIEXEC --prefix $OPENMPI -x LD_LIBRARY_PATH -x OMP_NUM_THREADS -x OMPI_MCA_btl -np $NSLOTS -machinefile $TMPDIR/machines $CMD $ARGS" echo "Command to run:" echo "$MPICMD" echo $MPICMD |