Skip to content

Commit

Permalink
Replace std::atomic_init
Browse files Browse the repository at this point in the history
gcc 8.5.0 doesn't like it, and deprecated as of c++20
  • Loading branch information
Robadob committed Sep 25, 2023
1 parent 368f678 commit 8eb1b99
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 @@ -221,8 +221,8 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector& plans) {
std::vector<std::atomic<unsigned int>> err_cts(TOTAL_RUNNERS);
std::vector<std::atomic<unsigned int>> next_runs(TOTAL_RUNNERS);
for (unsigned int i = 0; i < TOTAL_RUNNERS; ++i) {
std::atomic_init(&err_cts[i], UINT_MAX);
std::atomic_init(&next_runs[i], detail::MPISimRunner::Signal::RequestJob);
err_cts[i] = UINT_MAX;
next_runs[i] = detail::MPISimRunner::Signal::RequestJob;
}
{
unsigned int i = 0;
Expand Down

0 comments on commit 8eb1b99

Please sign in to comment.