- Build the code in cpu with
make
. In LUMI the correct compiler command isCC
, modify Makefile as needed. - "Modify" one of the source files by
touch util.cpp
, runmake
again and observe the behaviour - Try to run the resulting executable
prog
via batch system. A template batch job scripts are provided in ../. Try different number of nodes and tasks per node. - For simple testing, it is sometimes convenient to launch the program directly
from command line with
srun
srun --account=<my_account> --nodes=<nodes> --ntasks-per-node=<tasks-per-node> --partition=<partition> ./prog
Try to run the program also this way.
- Build the code in gpu with
make
. Modify Makefile as needed. Note: You need to load proper GPU modules. - Try to run the resulting executable
prog
via batch system. A template batch job scripts are provided in ../. Try different number of nodes and gpus per node. - Try to run the program also directly from command line with
srun