cc_staff
290
edits
No edit summary |
No edit summary |
||
Line 384: | Line 384: | ||
<source lang="bash"> | <source lang="bash"> | ||
#!/bin/bash | #!/bin/bash | ||
#SBATCH --nodes= | #SBATCH --nodes=2 | ||
#SBATCH --ntasks= | #SBATCH --ntasks=80 | ||
#SBATCH --time=1:00:00 | #SBATCH --time=1:00:00 | ||
#SBATCH --job-name | #SBATCH --job-name mpi_job | ||
#SBATCH --output= | #SBATCH --output=mpi_output_%j.txt | ||
#SBATCH --mail-type=FAIL | |||
cd $SLURM_SUBMIT_DIR | cd $SLURM_SUBMIT_DIR | ||
module load intel/2018.2 | module load intel/2018.2 | ||
module load openmpi/3.1. | module load openmpi/3.1.0 | ||
mpirun ./ | mpirun ./mpi_example | ||
# or "srun ./mpi_example" | |||
</source> | </source> | ||
<translate> | <translate> |