-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool_benchmark.pbs
More file actions
60 lines (47 loc) · 2.25 KB
/
tool_benchmark.pbs
File metadata and controls
60 lines (47 loc) · 2.25 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
#!/bin/bash
################################################
### INSTRUCTIONS
################################################
# Don't run this script directly, it is launched by the paired <tool>_benchmark_run.sh script
# Edits are required:
# - Edit -P PBS directive to your NCI project
# - Edit -lstorage PBS directive to your required NCI storage paths
# - Edit walltime to be sufficient for the lowest-resourced run of your job
# - Add your sript body (including module loads) between 'YOUR SCRIPT HERE' and 'END YOUR SCRIPT' headers
# - Ensure you have left the last line 'end_test=end' intact
# - Use the variables 'outfile_prefix' and 'outdir' for IO within your script
# - Variable 'prefix' may be used for inputs, if relevant
################################################
### PBS DIRECTIVES
################################################
#PBS -P <project>
#PBS -l walltime=02:00:00
#PBS -q normal
#PBS -W umask=022
#PBS -l wd
#PBS -lstorage=scratch/<project>
################################################
### FOR TEST RUN
################################################
if [[ $test == 'true' ]]
then
printf "* ${script} has received the following parameters for the first benchmark run at ${ncpus} NCPUS:\n\n"
printf "\t- Job name: ${job_name}\n\t- PBS o log: ${dot_o}\n\t- PBS e log: ${dot_e}\n"
printf "\t- \$prefix: ${prefix}\n\t- \$outdir: ${outdir}\n\t- \$outfile_prefix: ${outfile_prefix}\n";
printf "\n* Please ensure ${script} uses the variables \"\$outdir\" and \"\$outfile_prefix\" for outputs generated\n"
printf "\n* Variable \"\$prefix\" can be used to import inputs, as required/relevant for your job\n\n"
printf "* Here is your script for ${ncpus} NCPUS:\n\n\t- Please review variables carefully before proceeding to run without 'test' mode\n\n"
sed -n "/^begin_test/,/^end_test/{p;/^end/q}" ${script} | sed '1d' | head -n -1
exit
fi
begin_test=begin
################################################
### YOUR SCRIPT HERE
################################################
# Include all the commands required to run your job
# Use ${outdir} for output directory path
# Use ${outfile_prefix} for output file prefix
################################################
### END YOUR SCRIPT
################################################
end_test=end