Skip to content

Commit

Permalink
Remove --no-mpi runarg, config var now exists as a compile time const…
Browse files Browse the repository at this point in the history
…ant.
  • Loading branch information
Robadob committed Sep 22, 2023
1 parent 9c1f8d8 commit 0d3a6e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 3 additions & 2 deletions include/flamegpu/simulation/CUDAEnsemble.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ class CUDAEnsemble {
const bool block_standby = false;
#endif
/**
* Allows MPI processing to be disabled for builds with MPI support
* Flag which denotes whether MPI support is enabled
* @note This cannot be changed at runtime, depends on compilation settings.
*/
#ifdef FLAMEGPU_ENABLE_MPI
bool mpi = true;
const bool mpi = true;
#else
const bool mpi = false;
#endif
Expand Down
9 changes: 1 addition & 8 deletions src/flamegpu/simulation/CUDAEnsemble.cu
Original file line number Diff line number Diff line change
Expand Up @@ -766,14 +766,7 @@ int CUDAEnsemble::checkArgs(int argc, const char** argv) {
#endif
continue;
}
// --no-mpi Disable MPI support
if (arg.compare("--no-mpi") == 0) {
#ifdef FLAMEGPU_ENABLE_MPI
config.mpi = false;
#endif
continue;
}
// Warning if not in QUIET verbosity or if silnce-unknown-args is set
// Warning if not in QUIET verbosity or if silence-unknown-args is set
if (!(config.verbosity == flamegpu::Verbosity::Quiet || config.silence_unknown_args))
fprintf(stderr, "Warning: Unknown argument '%s' passed to Ensemble will be ignored\n", arg.c_str());
}
Expand Down

0 comments on commit 0d3a6e4

Please sign in to comment.