-
Notifications
You must be signed in to change notification settings - Fork 0
/
mandelbrot_openmp.slurm
38 lines (35 loc) · 1.34 KB
/
mandelbrot_openmp.slurm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# --------------------------------------------------------------
### PART 1: Requests resources to run your job.RT 1: Requests resources to run your job.
# --------------------------------------------------------------
### Optional. Set the job name
#SBATCH --job-name=mandelbrot_openmp
### Optional. Set the output filename.
### SLURM reads %x as the job name and %j as the job ID
#SBATCH --output=%x-%j.out
### REQUIRED. Specify the PI group for this job
#SBATCH --account=mstrout
### Optional. Request email when job begins and ends
### SBATCH --mail-type=ALL
### Optional. Specify email address to use for notification
### SBATCH --mail-user=<YOUR NETID>@email.arizona.edu
### REQUIRED. Set the partition for your job.
#SBATCH --partition=standard
### REQUIRED. Set the number of cores that will be used for this job.
#SBATCH --ntasks=1
### REQUIRED. Set the memory required for this job.
#SBATCH --mem=1gb
### REQUIRED. Specify the time required for this job, hhh:mm:ss
#SBATCH --time=00:01:00
# --------------------------------------------------------------
### PART 2: Execute bash commands to run your job
# --------------------------------------------------------------
### Load modules
module load openmpi3
### Change directory to this demo
cd ~/demo/AthanPumaDemo
### Build the demo
bash mandelbrot_openmp.sh
### Run the demo
./a.out
sleep 10