Update Cray info
This commit is contained in:
@ -30,3 +30,46 @@ module purge
|
||||
module load $MODULE_NAME # where $MODULE_NAME is a software in PModules
|
||||
srun $MYEXEC # where $MYEXEC is a path to your binary file
|
||||
```
|
||||
|
||||
## Multi-core based jobs example
|
||||
|
||||
### Pure MPI
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
#SBATCH --job-name=purempi
|
||||
#SBATCH --partition=daily # Using 'daily' will grant higher priority
|
||||
#SBATCH --time=24:00:00 # Define max time job will run
|
||||
#SBATCH --output=%x-%j.out # Define your output file
|
||||
#SBATCH --error=%x-%j.err # Define your error file
|
||||
#SBATCH --exclusive
|
||||
#SBATCH --nodes=1
|
||||
#SBATCH --ntasks=128
|
||||
#SBATCH --hint=nomultithread
|
||||
##SBATCH --cpus-per-task=1
|
||||
|
||||
module purge
|
||||
module load $MODULE_NAME # where $MODULE_NAME is a software in PModules
|
||||
srun $MYEXEC # where $MYEXEC is a path to your binary file
|
||||
```
|
||||
|
||||
### Hybrid
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
#SBATCH --job-name=hybrid
|
||||
#SBATCH --partition=daily # Using 'daily' will grant higher priority
|
||||
#SBATCH --time=24:00:00 # Define max time job will run
|
||||
#SBATCH --output=%x-%j.out # Define your output file
|
||||
#SBATCH --error=%x-%j.err # Define your error file
|
||||
#SBATCH --exclusive
|
||||
#SBATCH --nodes=1
|
||||
#SBATCH --ntasks=128
|
||||
#SBATCH --hint=multithread
|
||||
#SBATCH --cpus-per-task=2
|
||||
|
||||
module purge
|
||||
module load $MODULE_NAME # where $MODULE_NAME is a software in PModules
|
||||
srun $MYEXEC # where $MYEXEC is a path to your binary file
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user