alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
GridSyncNoOp.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
11namespace alpaka
12{
13 //! The NoOp grid synchronization for accelerators that only support a single thread with cooperative kernels.
14 class GridSyncNoOp : public interface::Implements<ConceptGridSync, GridSyncNoOp>
15 {
16 };
17
18 namespace trait
19 {
20 template<>
22 {
24 ALPAKA_FN_ACC static auto syncGridThreads(GridSyncNoOp const& /*gridSync*/) -> void
25 {
26 // Nothing to do.
27 }
28 };
29
30 } // namespace trait
31
32} // namespace alpaka
The NoOp grid synchronization for accelerators that only support a single thread with cooperative ker...
#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(GridSyncNoOp const &) -> void
The grid synchronization operation trait.
Definition Traits.hpp:21