Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Jul 20, 2023
1 parent 8e05d93 commit 7f29789
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/flamegpu/simulation/CUDAEnsemble.cu
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector& plans) {
}
#else
const int world_rank = -1;
const int world_size = -1;
const int finalize_size = 1;
#endif

// Validate/init output directories
Expand Down Expand Up @@ -220,8 +218,9 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector& plans) {
// Setup MPISimRunners
detail::MPISimRunner** runners = reinterpret_cast<detail::MPISimRunner**>(_runners);
next_runs = std::vector<std::atomic<unsigned int>>(TOTAL_RUNNERS);
for (auto& nr : next_runs)
for (auto& nr : next_runs) {
std::atomic_init(&nr, detail::MPISimRunner::Signal::RequestJob);
}
{
unsigned int i = 0;
for (auto& d : devices) {
Expand Down

0 comments on commit 7f29789

Please sign in to comment.