This is a simulation of Physarum Polycephalum, written in CUDA, but can be compiled for CPU execution with NVCC.
Before compiling the project, clone the repository with the submodules:
git clone https://github.com/physarumAdv/minds_crawl.git --recursive
cd minds_crawl
To compile (the produced executable will require an NVidia GPU to run):
mkdir cmake-build-release && cd cmake-build-release
cmake ..
cmake --build . -- -j`nproc`
Note that there is also a way to produce an executable which will only use CPU for running, however it's highly unrecommended to use this mode for any purposes but debugging:
mkdir cmake-build-debug && cd cmake-build-debug
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCOMPILE_FOR_CPU=ON
cmake --build . -- -j`nproc`
To run the application, you have to:
-
Start a visualization app (we recommend this one)
-
Create a directory
config
in the process's working directory with a filevisualization_endpoint.txt
inside it, containing 2 urls which accepts the simulated data (the first url for particles and the second for polyhedron. An example is in config/visualization_endpoint_example.txt)
Nikolay Nechaev, [email protected]
Tatiana Kadykova, [email protected]