Skip to content

Farfi55/Allegro-MPI-Cave-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allegro-MPI-Cave-Generator

Cellular automata project that procedurally generates a cave using simple rules and parallelization.

Purpose of the project

This is a project for the Parallel Algorithmsm course at my university (Unical).

It utilizes mpi to parallelize a cellular automata algorithm on a 2d cartesian grid.

Inspired by this video

How to build

dependencies

building

git clone https://github.com/Farfi55/Allegro-MPI-Cave-Generator.git
cd ./Allegro-MPI-Cave-Generator
make

Running

mpirun -np <n_procs> ./bin/cavegen [options]

for more info use: ./bin/cavegen -h

example

mpirun -np 6 bin/cavegen -c ./config/my_config.cfg -p -x 3 -y 2

  • mpirun -np 6 bin/cavegen run program on 6 threads
  • -c ./config/my_config.cfg load the specified config file
  • -p: run in parallel mode
  • -x 3: set 3 threads on the x axis
  • -y 2: set 2 threads on the y axis

Configuration

when running you can set a custom configuration with the option -c config_file

for more info on the configuration options use cavegen -hc

showcase

cavegen showcase

About

multi-threaded procedural cave generator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages