-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfederated-job-script
More file actions
executable file
·71 lines (47 loc) · 1.52 KB
/
Copy pathfederated-job-script
File metadata and controls
executable file
·71 lines (47 loc) · 1.52 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Usage: sbatch slurm-gpu-job-script
# Prepared By: Kai Xi, Feb 2015
# help@massive.org.au
# NOTE: To activate a SLURM option, remove the whitespace between the '#' and 'SBATCH'
# To give your job a name, replace "MyJob" with an appropriate name
#SBATCH --job-name=FLTraining
# To set a project account for credit charging,
#SBATCH --account=sq58
# Request CPU resource for a serial job
#SBATCH --ntasks=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=8
# Request for GPU,
#
# Option 1: Choose any GPU whatever m2070 or K20
# Note in most cases, 'gpu:N' should match '--ntasks=N'
#SBATCH --gres=gpu:V100:1
#SBATCH --partition=m3g
# SBATCH --gres=gpu:P100:1
# SBATCH --partition=m3h
# SBATCH --gres=gpu:T4:1
# SBATCH --partition=gpu
# SBATCH --gres=gpu:A100:1
# SBATCH --partition=gpu
# Memory usage (MB)
#SBATCH --mem-per-cpu=16000
# Set your minimum acceptable walltime, format: day-hours:minutes:seconds
#SBATCH --time=01-06:00:00
# To receive an email when job completes or fails
#SBATCH --mail-user=enoch.mok@monash.edu
#SBATCH --mail-type=END
# SBATCH --mail-type=FAIL
# Set the file for output (stdout)
#SBATCH --output=./sbatchlog/fl/%j.out
# Set the file for error log (stderr)
#SBATCH --error=./sbatchlog/fl/%j.err
# Use reserved node to run job when a node reservation is made for you already
# SBATCH --reservation=reservation_name
# Command to run a gpu job
# For example:
#module load cuda/7.0
#nvidia-smi
#deviceQuery
eval "$(conda shell.bash hook)"
conda activate exp1
./run_fl.sh