alpaka
Abstraction Library for Parallel Kernel Acceleration
Wait.hpp
Go to the documentation of this file.
1 /* Copyright 2022 Benjamin Worpitz, Rene Widera, Bernhard Manfred Gruber
2  * SPDX-License-Identifier: MPL-2.0
3  */
4 
5 #pragma once
6 
7 #include "alpaka/dev/DevCpu.hpp"
9 #include "alpaka/wait/Traits.hpp"
10 
11 namespace alpaka::trait
12 {
13  //! The CPU device thread wait specialization.
14  //!
15  //! Blocks until the device has completed all preceding requested tasks.
16  //! Tasks that are enqueued or queues that are created after this call is made are not waited for.
17  template<>
19  {
20  ALPAKA_FN_HOST static auto currentThreadWaitFor(DevCpu const& dev) -> void
21  {
23 
25  }
26  };
27 } // namespace alpaka::trait
#define ALPAKA_DEBUG_FULL_LOG_SCOPE
Definition: Debug.hpp:62
The CPU device handle.
Definition: DevCpu.hpp:56
#define ALPAKA_FN_HOST
Definition: Common.hpp:40
ALPAKA_FN_HOST auto currentThreadWaitForDevice(TDev const &dev) -> void
The accelerator traits.
static ALPAKA_FN_HOST auto currentThreadWaitFor(DevCpu const &dev) -> void
Definition: Wait.hpp:20
The thread wait trait.
Definition: Traits.hpp:21