Skip to content

Latest commit

 

History

History
93 lines (57 loc) · 1.9 KB

multi-gpu.rst

File metadata and controls

93 lines (57 loc) · 1.9 KB

Multiple GPUs

  • How do I run on more than one GPU?
  • TODO
  • Understand TODO
  • Understand TODO
  • Understand
  • Understand
  1. TODO
  2. TODO

First heading

Some text

Second heading

Some more text, with a figure

This is a sample image

This is a sample image

TODO get the students to think about the content and answer a Zoom quiz

Hide the answer and reasoning in here

Some source code

Sometimes we need to look at code, which can be in the webpage and optionally you can pull out only some lines, or highlight others. Make sure both C++ and Fortran examples exist and work.

The field data structure

C++

exercise/serial/heat.h

Fortran

exercise/serial/fortran/heat_mod.F90

Building the code

If there's terminal output to discuss, show something like:

nvc++ -g -O3 -fopenmp -Wall -I../common -c main.cpp -o main.o
nvc++ -g -O3 -fopenmp -Wall -I../common -c core.cpp -o core.o
nvc++ -g -O3 -fopenmp -Wall -I../common -c setup.cpp -o setup.o
nvc++ -g -O3 -fopenmp -Wall -I../common -c utilities.cpp -o utilities.o
nvc++ -g -O3 -fopenmp -Wall -I../common -c io.cpp -o io.o
nvc++ -g -O3 -fopenmp -Wall -I../common main.o core.o setup.o utilities.o io.o ../common/pngwriter.o -o heat_serial  -lpng

Running the code

To show a sample command line, use this approach

./heat_serial 800 800 1000
  • TODO summarize the learning outcome
  • TODO