Skip to content

Commit

Permalink
OMP->MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Sep 12, 2023
1 parent a7fb727 commit 5e7ed20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flamegpu/simulation/CUDAEnsemble.cu
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector& plans) {
std::mutex log_export_queue_mutex;
std::condition_variable log_export_queue_cdn;
#ifdef FLAMEGPU_ENABLE_MPI
// In OMP mode, Rank 0 will collect errors from all ranks
// In MPI mode, Rank 0 will collect errors from all ranks
std::multimap<int, detail::AbstractSimRunner::ErrorDetail> err_detail = {};
#endif
std::vector<detail::AbstractSimRunner::ErrorDetail> err_detail_local = {};
Expand All @@ -211,7 +211,7 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector& plans) {
step_log_config.get(), exit_log_config.get(), step_log_config && step_log_config->log_timing, exit_log_config && exit_log_config->log_timing);
}

// In OMP mode, only Rank 0 increments the error counter
// In MPI mode, only Rank 0 increments the error counter
unsigned int err_count = 0;
if (config.mpi) {
#ifdef FLAMEGPU_ENABLE_MPI
Expand Down

0 comments on commit 5e7ed20

Please sign in to comment.