-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcuda.sub
More file actions
67 lines (66 loc) · 1.33 KB
/
Copy pathcuda.sub
File metadata and controls
67 lines (66 loc) · 1.33 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
#!/bin/bash
##
## MPI submission script for PBS GRID
## ----------------------------------
##
## Follow the 5 steps below to configure. If you edit this from Windows,
## *before* submitting via "qsub" run "dos2unix" on this file - or you will
## get strange errors. You have been warned.
##
## STEP 1:
## The following line contains the job name:
##
#PBS -N cudatest
##
## STEP 2:
##
## The select line below selects 1 chunk of 9 cpus
## This strange number is needed to get the GPU;
## will change in the future as IT support reviews the
## queueing policies.
##
#PBS -l select=1:ncpus=9:mpiprocs=1:gpu=true
##
## STEP 3:
##
## Select correct queue:
##
## one_hour - 1 hour
## half_day - 12 hours
## one_day - 24 hours
## two_day - 48 hours
## five_day - 120 hours
## ten_day - 240 hours (by special arrangement)
##
#PBS -q one_hour
##
## STEP 4:
##
## Put YOUR email address in the next line:
##
#PBS -M john.doe@cranfield.ac.uk
##
##
##
## DO NOT CHANGE the following lines
##------------------------------------------------
#PBS -W sandbox=PRIVATE
#PBS -V
#PBS -j oe
#PBS -m abe
##
## Change to working directory
cd $PBS_O_WORKDIR
##
## Calculate number of CPUs
cpus=`cat $PBS_NODEFILE | wc -l`
##
##
##-------------------------------------------------
##
## STEP 5:
##
## Put correct parameters in mpirun execution line
## below:
##
./cudacsr