A basic implementation of the Game of Life using MPI.
Cmake 3.28 is required - you need the ppa (https://apt.kitware.com/)
To compile the project, please run the following commands:
mkdir build
cd build
cmake ..
make -j 32
From the build
directory, you can run the following commands:
src/main/gol
mpirun -n 9 src/main/par_gol
GDB is a powerful debugger that integrates well with CLion. You can run it by debugging a CMake run configuration in CLion.
Alternatively, you can run it from the command line (from the build
directory):
$ gdb src/main/gol
(gdb) run
...
(gdb) exit
Valgrind is a really cool tool for detecting memory leaks and other reasons your program might crash.
Valgrind is also available in CLion as another option alongside debugging, but you can run it from the command line as well.
valgrind src/main/gol
When running with MPI, Valgrind may produce some MPI-related warnings that can be ignored:
mpirun -n 9 valgrind src/main/par_gol
wandb login
and paste in your tokenwandb sweep -p <project> -e <entity>
to create the sweepavailable_processes.txt
inside executor
with the number of cores available on the machinenohup <sweep agent cmd> &
as many times as required from executor