Niagara Quickstart: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 384: Line 384:
<source lang="bash">
<source lang="bash">
#!/bin/bash  
#!/bin/bash  
#SBATCH --nodes=8
#SBATCH --nodes=2
#SBATCH --ntasks=320
#SBATCH --ntasks=80
#SBATCH --time=1:00:00
#SBATCH --time=1:00:00
#SBATCH --job-name mpi_ex
#SBATCH --job-name mpi_job
#SBATCH --output=mpi_ex_%j.txt
#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.0rc3
module load openmpi/3.1.0
 
mpirun ./appl_mpi_ex
mpirun ./mpi_example
# or "srun ./mpi_example"
</source>
</source>
<translate>
<translate>
cc_staff
290

edits