Setting Up and Configuring Project#
In the CMakeLists.txt of your simulation project, there are a few configuration options for the MASS CUDA library:
CMake variable |
Description |
Default value |
|---|---|---|
|
The root directory of the NCCL library |
“” |
|
The root directory of the libssh library |
“” |
|
Maximum number of agent instances on each place instance |
1 |
|
Maximum number of neighbors for each place instance |
12 |
|
Maximum number of dimensions for the spatial grid |
4 |
|
Maximum number of potential agent instances migrating to each place instance |
12 |
To configure these options, set the value of these variables in CMakeLists.txt before adding the MASS library as dependencies.
# Configure MASS CUDA
set(MASS_MAX_AGENTS 3)
set(MASS_MAX_DIMS 2)
# Add MASS CUDA as a dependency
FetchContent_Declare(
mass_cuda
GIT_REPOSITORY "https://bitbucket.org/mass_library_developers/mass_cuda_core"
GIT_TAG "develop"
)
FetchContent_MakeAvailable(mass_cuda)