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
"
8
#include "
alpaka/event/EventCpu.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
<>
18
struct
CurrentThreadWaitFor
<
DevCpu
>
19
{
20
ALPAKA_FN_HOST
static
auto
currentThreadWaitFor
(
DevCpu
const
& dev) ->
void
21
{
22
ALPAKA_DEBUG_FULL_LOG_SCOPE
;
23
24
generic::currentThreadWaitForDevice
(dev);
25
}
26
};
27
}
// namespace alpaka::trait
ALPAKA_DEBUG_FULL_LOG_SCOPE
#define ALPAKA_DEBUG_FULL_LOG_SCOPE
Definition:
Debug.hpp:62
DevCpu.hpp
EventCpu.hpp
alpaka::DevCpu
The CPU device handle.
Definition:
DevCpu.hpp:56
ALPAKA_FN_HOST
#define ALPAKA_FN_HOST
Definition:
Common.hpp:40
alpaka::trait::generic::currentThreadWaitForDevice
ALPAKA_FN_HOST auto currentThreadWaitForDevice(TDev const &dev) -> void
Definition:
EventGenericThreads.hpp:236
alpaka::trait
The accelerator traits.
Definition:
AccCpuOmp2Blocks.hpp:112
alpaka::trait::CurrentThreadWaitFor< DevCpu >::currentThreadWaitFor
static ALPAKA_FN_HOST auto currentThreadWaitFor(DevCpu const &dev) -> void
Definition:
Wait.hpp:20
alpaka::trait::CurrentThreadWaitFor
The thread wait trait.
Definition:
Traits.hpp:21
Traits.hpp
include
alpaka
dev
cpu
Wait.hpp
Generated on Thu Nov 21 2024 22:46:14 for alpaka by
1.9.1