srun problem
The following job won't work (/lustre/or-scratch/cades-sw/world-shared/spack_test/test.sh).
#!/bin/bash
#SBATCH -A staff
#SBATCH -p testing
#SBATCH -N 2
#SBATCH -n 4
#SBATCH -c 1
#SBATCH -J test-job
#SBATCH --mem=1g
#SBATCH -t 5:00
#SBATCH -o ./test-%J.out
#SBATCH -e ./test-%J.err
module purge
source /software/cades-open/spack-envs/base/root/linux-centos7-x86_64/gcc-6.3.0/lmod-8.5.6-wdngv4jylfvg2j6jt7xrtugxggh5lpm5/lmod/lmod/init/bash
export MODULEPATH=/software/cades-open/spack-envs/base/modules/site/Core
module load gcc
module load openmpi
sleep 1m
srun ./mpi-ring
Enclosed is the error output when I run in an interactive mode. error.txt
If I use mpirun (instead of srun). Here is the job output test-2459224.out Here is the error file test-2459224.err.out