-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathexample.sh
More file actions
30 lines (21 loc) · 798 Bytes
/
Copy pathexample.sh
File metadata and controls
30 lines (21 loc) · 798 Bytes
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
#!/bin/bash -l
# Bash script to run the CUDA example on Myriad
# Request one GPU card (out of the maximum of two)
#$ -l gpu=1
# Request a wall clock time limit of 1 minute (format hours:minutes:seconds)
#$ -l h_rt=0:1:0
# Request 1 gigabyte of RAM (must be an integer followed by M, G or T)
#$ -l mem=1G
# Request 1 gigabyte of TMPDIR space (default is 10 GB)
#$ -l tmpfs=1G
# Set the name of the job.
#$ -N CUDAexample
# Set the working directory to somewhere in your scratch space.
# Replace "<your_UCL_id>" with your UCL user ID
#$ -wd /home/<your_UCL_id>/phas0100/cuda/phas0100_cuda/output
# load the cuda module (as we are running a CUDA program)
module unload compilers mpi
module load compilers/gnu/4.9.2
module load cuda/7.5.18/gnu-4.9.2
# Run the application
../build/CUDAexample