Skip to content

Commit

Permalink
OpenMPTarget: include desul changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulkumar Gayatri committed Jun 6, 2023
1 parent c72615a commit ad966bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tpls/desul/include/desul/atomics/Thread_Fence_OpenMP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ SPDX-License-Identifier: (BSD-3-Clause)
namespace desul {
namespace Impl {

#if _OPENMP > 201800
// NVHPC compiler only supports the basic flush construct without the
// memory-order-clause.
#if _OPENMP > 201800 && !defined(__NVCOMPILER)

// There is no seq_cst flush in OpenMP, isn't it the same anyway for fence?
inline void host_atomic_thread_fence(MemoryOrderSeqCst, MemoryScopeCore) {
Expand Down

0 comments on commit ad966bd

Please sign in to comment.