Commit 9a0dde11 authored by Parete-Koon, Suzanne's avatar Parete-Koon, Suzanne
Browse files

Update readme.md

parent cd4f23c0
......@@ -9,7 +9,7 @@ CADES Condo's have several GPUS
| `gpu` | 14-0:0:0 | 9 | 32 | Haswell | 250G | 233G | 2x K80 (GK210) |
| `gpu_p100` | 14-0:0:0 | 8 | 36 | Broadwell | 500G | 2T | 2x P100 (GP100) |
The birthright nodes have 2 GPUS each. We will use one of them to do a Vecor addition in this challenge.
The birthright nodes have 2 GPUS each. We will use one of them to do a vector addition in this challenge.
## VecAdd.c
VecAdd.c adds two vectors A and B to produce C, where Ci = Ai + Bi. This version of code was brought to you Lustre Birthright scratch space during the Globus challenge.
......@@ -113,7 +113,14 @@ Standard SBATCH directives:
#SBATCH --gres=gpu:2
```
We will also use NVprof, NVIDIA's built-in profiler. It will show you that your code is running on the GPU and also give you performance information about the code.
To use nvprof issue:
```
mpirun nvprof ./vecAdd.o
You must use --gres=gpu:2 to tell the job to use the node's GPUs.
### Challenge 2 Submit a GPU Job with SLRUM
Below is a batch script to run the VecAdd.o that you compiled on the GPU. Fill in the blanks using your knowledge of the SLURM batch directives
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment