Commit 59de028c authored by Parete-Koon, Suzanne's avatar Parete-Koon, Suzanne
Browse files

Update README.md

parent 0f98a85e
......@@ -7,7 +7,7 @@ The birthright nodes have 2 GPUS each. We will use one of them to do a vector ad
For this example and challenge you will need to have done the Globus challenge to get the files.
Otherwise, please login to or-slurm-login01 and cp -r /lustre/or-hydra/cades-birthright/world-shared/GPU-Basics .
## VecAdd.c
# VecAdd.c
VecAdd.c adds two vectors A and B to produce C, where Ci = Ai + Bi.
......@@ -94,7 +94,7 @@ To compile this code with the pgcc compiler and OpenAcc use the `-acc` flag.
The pgi compiler’s `-Minfo` flag allows you to see what the compiler is doing with your code
## Challenge part 1:
# Challenge part 1: Compile Using PGI and OpenACC
Set up your programming environment and fill in the blanks to compile the code with the -acc flag and the - Minfo flag.
......@@ -111,7 +111,7 @@ Run the code. Your vector should sum to a value of 1.
```
$ ./VecAdd.o
```
## GPU Batch Scripting
# GPU Batch Scripting
Standard SBATCH directives for CADES Birthright:
......@@ -140,7 +140,7 @@ module load cuda
nvprof ./VecAdd.o
```
### Challenge 2 Submit a GPU Job with SLRUM
# Challenge Part 2: Submit a GPU Job with SLRUM
Below is a batch script to run the VecAdd.o, that you compiled in challenge 1. Note that we are using NVProf. Fill in the blanks using your knowledge of the SLURM batch directives
and the CADES software environment. If your compilation failed copy the VecAcc.o file from the “answers” folder into your work area to do this part.
......
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