Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Nov 6, 2023
1 parent 6428674 commit f5c9962
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions include/flamegpu/simulation/detail/MPIEnsemble.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <map>
#include <string>
#include <mutex>
#include <vector>

#include "flamegpu/simulation/CUDAEnsemble.h"
#include "flamegpu/simulation/detail/MPISimRunner.h"
Expand Down Expand Up @@ -80,6 +81,7 @@ class MPIEnsemble {
void retrieveLocalErrorDetail(std::mutex &log_export_queue_mutex,
std::multimap<int, AbstractSimRunner::ErrorDetail> &err_detail,
std::vector<AbstractSimRunner::ErrorDetail> &err_detail_local, int i);

private:
/**
* @return Retrieve the local world rank from MPI
Expand Down
2 changes: 1 addition & 1 deletion src/flamegpu/simulation/CUDAEnsemble.cu
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector& plans) {
if (runner_status == detail::MPISimRunner::Signal::RunFailed) {
// Fetch the job id, increment local error counter
const unsigned int failed_run_id = err_cts[i].exchange(UINT_MAX);
++err_count;
++err_count;
// Retrieve and handle local error detail
mpi->retrieveLocalErrorDetail(log_export_queue_mutex, err_detail, err_detail_local, i);
runner_status = detail::MPISimRunner::Signal::RequestJob;
Expand Down
2 changes: 1 addition & 1 deletion src/flamegpu/simulation/detail/MPIEnsemble.cu
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void MPIEnsemble::initMPI() {
}
}
}
void MPIEnsemble::retrieveLocalErrorDetail(std::mutex &log_export_queue_mutex, std::multimap<int, AbstractSimRunner::ErrorDetail> &err_detail,
void MPIEnsemble::retrieveLocalErrorDetail(std::mutex &log_export_queue_mutex, std::multimap<int, AbstractSimRunner::ErrorDetail> &err_detail,
std::vector<detail::AbstractSimRunner::ErrorDetail> &err_detail_local, const int i) {
// Fetch error detail
detail::AbstractSimRunner::ErrorDetail e_detail;
Expand Down

0 comments on commit f5c9962

Please sign in to comment.