forked from yvetteyuanqin/CUDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcuda.sh
executable file
·51 lines (44 loc) · 1.29 KB
/
cuda.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
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
#$ -N REDUCE
#$ -q gpu
#$ -l gpu=1
#$ -pe gpu-node-cores 6
# Notes:
# The GPU node (compute-1-14) has 4 Tesla M2090 GPU cards. The node also
# has 24 Intel cores.
#
# In the Grid Engine directives above, we are requesting one (1) GPU card:
# -l gpu=1
# and 6 Intel cores with the Parallel Environment "gpu-node-cores":
# -pe gpu-node-cores 6
#
# When requesting GPU resources, please try requesting 6 Intel cores per
# each gpu card you request. Since the node has 24 Intel cores, the
# division comes out to 6 Intel cores per each GPU card.
#
# There are no fixed numbers when requesting cores verses GPU cards, it all
# depends on the running program. If you can run with 2 Intel cores and 2
# GPU cards, then use those numbers.
#
# To see how many GPU cards compute-1-14 has avaialble for a job:
# qhost -F gpu -h compute-1-14
#
# For details, see: http://hpc.oit.uci.edu/gpu
#
# Module load Cuda Compilers and GCC
module load cuda/5.0
module load gcc/4.4.3
# Runs a bunch of standard command-line
# utilities, just as an example:
echo "Script began:" `date`
echo "Node:" `hostname`
echo "Current directory: ${PWD}"
echo ""
echo "=== Running 5 trials of naive ... ==="
for trial in 1 2 3 4 5; do
echo "*** Trial ${trial} ***"
./naive
done
echo ""
echo "=== Done! ==="
# eof