Skip to content

Commit

Permalink
OpenACC: test only 32bit and 64bit atomics
Browse files Browse the repository at this point in the history
  • Loading branch information
psychocoderHPC committed Jul 28, 2022
1 parent 1fe7531 commit bb5870b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/unit/atomic/src/AtomicTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,23 @@ class AtomicTestKernel<

#endif

#if defined(ALPAKA_ACC_ANY_BT_OACC_ENABLED)

template<typename TDim, typename TIdx, typename T>
class AtomicTestKernel<alpaka::AccOacc<TDim, TIdx>, T, std::enable_if_t<sizeof(T) != 4u && sizeof(T) != 8u>>
{
public:
ALPAKA_NO_HOST_ACC_WARNING
ALPAKA_FN_ACC auto operator()(alpaka::AccOacc<TDim, TIdx> const& /* acc */, bool* success, T /* operandOrig */)
const -> void
{
// All other types are not supported by OpenACC atomic operations.
ALPAKA_CHECK(*success, true);
}
};

#endif

template<typename TAcc, typename T>
struct TestAtomicOperations
{
Expand Down

0 comments on commit bb5870b

Please sign in to comment.