alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
GridSyncBarrierCpuOmp.hpp
Go to the documentation of this file.
1/* Copyright 2026 Mykhailo Varvarin
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
10
11#ifdef _OPENMP
12
13namespace alpaka
14{
15 //! The grid synchronization for OMP accelerators.
16 class GridSyncOmp : public interface::Implements<ConceptGridSync, GridSyncOmp>
17 {
18 };
19
20 namespace trait
21 {
22 template<>
24 {
26 ALPAKA_FN_ACC static auto syncGridThreads(GridSyncOmp const& /*gridSync*/) -> void
27 {
28# pragma omp barrier
29 }
30 };
31
32 } // namespace trait
33
34} // namespace alpaka
35
36#endif
The grid synchronization for OMP accelerators.
#define ALPAKA_FN_ACC
All functions that can be used on an accelerator have to be attributed with ALPAKA_FN_ACC or ALPAKA_F...
Definition Common.hpp:41
#define ALPAKA_NO_HOST_ACC_WARNING
Disable nvcc warning: 'calling a host function from host device function.' Usage: ALPAKA_NO_HOST_ACC_...
Definition Common.hpp:85
The alpaka accelerator library.
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...
Definition Interface.hpp:15
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_ACC auto syncGridThreads(GridSyncOmp const &) -> void
The grid synchronization operation trait.
Definition Traits.hpp:21