-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubmit.sh
executable file
·41 lines (32 loc) · 1.03 KB
/
submit.sh
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
#!/bin/bash
# Set the name of the job
# (this gets displayed when you get a list of jobs on the cluster)
#SBATCH --job-name="sa2c_sjh_profile"
#SBATCH -o sa2c_sjh_profile.out
#SBATCH -e sa2c_sjh_profile.err
# Specify the maximum wall clock time your job can use
# (Your job will be killed if it exceeds this)
#SBATCH --time=1:00:00
# Specify the amount of memory your job needs (in Mb)
# (Your job will be killed if it exceeds this for a significant length of time)
#SBATCH --mem-per-cpu=1024
# Specify the number of cpu cores your job requires
#SBATCH --ntasks=4
# Set up the environment
module load intel
source /opt/intel/vtune_amplifier_xe/amplxe-vars.sh
# Run the application
export OMP_NUM_THREADS=$SLURM_NTASKS
#if [ "$[OMP_NUM_THREADS]" -gt "1" ]
#then
# FOLDER="`cat compile_flags` ${OMP_NUM_THREADS} threads"
#else
# FOLDER="`cat compile_flags`"
#fi
PROFILE=hotspots
FOLDER=profiling_${PROFILE}_${SLURM_JOB_ID}
mkdir "$FOLDER"
cd "$FOLDER"
cp ../con ../midout ../remez* .
amplxe-cl -collect $PROFILE ../bulk_rhmc
rm con midout remez*