-
Notifications
You must be signed in to change notification settings - Fork 1
/
bruteParallel.slurm
25 lines (25 loc) · 803 Bytes
/
bruteParallel.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
#!/bin/bash -x
#SBATCH --job-name="DES_Brute_Force_Decryption"
#SBATCH --nodes=16
#SBATCH --ntasks-per-node=8
#Multiply nn and xx (denoted below as nn*xx) and use that in the line
#SBATCH --ntasks=128
#SBATCH --exclusive
#SBATCH --export=ALL
#SBATCH --time=00:59:59
#SBATCH -o bruteParallel.out
#SBATCH -e bruteParallel.err
# Go to the directoy from which our job was launched
cd $SLURM_SUBMIT_DIR
# Create a short JOBID base on the one provided by the scheduler
JOBID='echo $SLURM_JOBID'
# Save a copy of our environment and script
cat $0 > script.$JOBID
printenv > env.$JOBID
# Run the job.
# The echo will go into the standard output for this job
# The standard output file will end up in the directory
# from which the job was launched.
echo "running job"
srun bruteParallel
echo "job has finished"