Re: /tmp/slurmd/job8440949/slurm_script: line 31: mpirun: command not found

From: Vermaas, Josh (
Date: Mon Feb 14 2022 - 08:55:00 CST

Three things:

  1. This looks like a multicore NAMD installation, which doesn’t need mpirun at all.
  2. Multicore builds *cannot* be run across multiple nodes.
  3. Without +p argument that matches the number of cores, the default is to assume 1 core, which will run very slowly.


From: <> on behalf of İmren Bayıl <>
Reply-To: "" <>, İmren Bayıl <>
Date: Monday, February 14, 2022 at 9:31 AM
To: "" <>
Subject: namd-l: /tmp/slurmd/job8440949/slurm_script: line 31: mpirun: command not found

ı wan to run namd slurm but when ı write sbatch namd_slurm.bash it s failed ı am getting this error /tmp/slurmd/job8440949/slurm_script: line 31: mpirun: command not found
actually when the run my local computer it is running but it takes so long but ı want to run slurm so could you help me please
#SBATCH -p sardalya
#SBATCH -A ibayil
#SBATCH -J namd-multicore-test
#SBATCH -n 16
#SBATCH --time=15-00:00:00
#SBATCH --workdir=/truba_scratch/ibayil/amber
#SBATCH --output=out_slurm/slurm-%j.out
#SBATCH --error=error_slurm/slurm-%j.err

export LD_LIBRARY_PATH=/truba/sw/centos7.3/app/namd/2017-11-10-multicore/lib:$LD_LIBRARY_PATH
export PATH=/truba/sw/centos7.3/app/namd/2017-11-10-multicore/bin:$PATH


wdir=/truba_scratch/ibayil/amber #Uygulama için çalıştırılacak dosyaların adresleri.
cd $wdir

infile=$wdir/water.namd #Uygulamanın çalışması için gerekli input ve output dosyaların adları.

#tum kuyruklar icin
module load centos7.3/app/namd/2017-11-10-multicore

#cuda kuyrugu icin
#module load centos7.3/app/namd/2017-11-10-multicore-cuda

mpirun /truba/sw/centos7.3/app/namd/2017-11-10-multicore/namd2 <$infile> $outfile

#$NAMD_DIR/namd2 +p $SLURM_NTASKS +idlepoll water.namd

This archive was generated by hypermail 2.1.6 : Tue Dec 13 2022 - 14:32:44 CST