alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
Traits.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
9
10namespace alpaka
11{
13 {
14 };
15
16 //! The grid synchronization traits.
17 namespace trait
18 {
19 //! The grid synchronization operation trait.
20 template<typename TGridSync, typename TSfinae = void>
22
23 } // namespace trait
24
25 //! Synchronizes all threads within the current grid. Works only for cooperative kernels.
26 //! NOTE: when compiled with CUDA Clang default build type locks up if numberOfBlocks > 2 * multiProcessorCount.
27 //! https://github.com/llvm/llvm-project/issues/98886
28 //!
29 //! \tparam TGridSync The grid synchronization implementation type.
30 //! \param gridSync The grid synchronization implementation.
32 template<typename TGridSync>
33 ALPAKA_FN_ACC auto syncGridThreads(TGridSync const& gridSync) -> void
34 {
37 }
38
39
40} // namespace alpaka
#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
typename detail::ImplementationBaseType< TInterface, TDerived >::type ImplementationBase
Returns the type that implements the given interface in the inheritance hierarchy.
Definition Interface.hpp:66
The alpaka accelerator library.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto syncGridThreads(TGridSync const &gridSync) -> void
Synchronizes all threads within the current grid. Works only for cooperative kernels....
Definition Traits.hpp:33
The grid synchronization operation trait.
Definition Traits.hpp:21