I am trying to run irace on Compute Canada, and when I used openmpi module, it always gave me this error message below:
mpirun was unable to launch the specified application as it could not access or execute an executable:
Executable: /scratch/irace/test.R
Node: niaXXXX
while attempting to start process rank 0.
My bash script is written
#!/bin/sh
#SBATCH --nodes=5
#SBATCH --ntasks-per-node=40
#SBATCH --mem=0
#SBATCH --mail-type=ALL
#SBATCH --output=/scratch/irace/irace-%j.out
#SBATCH --error=/scratch/irace/irace-%j.err
module load NiaEnv/2019b
module load gcc
module load r
module load openmpi
cd /scratch/irace
mpirun -np 5 /scratch/irace/test.R --parallel 4
When I submitted this job script, the run failed. However, when I replaced the last statement
mpirun -np 5 /scratch/irace/test.R --parallel 4
with the statement
Rscript ./test.R
, it would run all good and give me the results. What are the causes of this and how can I fix this bug and get it run on Compute Canada?