Skip to content

Commit

Permalink
Fix memory order for c++20 compatibility (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikbuibui authored Aug 7, 2024
1 parent bffe2aa commit 18bcad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/mallocMC/mallocMC_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,12 @@ namespace mallocMC
// CPU only implementation
static void device()
{
std::atomic_thread_fence(std::memory_order::memory_order_seq_cst);
std::atomic_thread_fence(std::memory_order_seq_cst);
}

static void block()
{
std::atomic_thread_fence(std::memory_order::memory_order_seq_cst);
std::atomic_thread_fence(std::memory_order_seq_cst);
}
};

Expand Down

0 comments on commit 18bcad8

Please sign in to comment.