alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
include
alpaka
api
cuda
executor.hpp
Go to the documentation of this file.
1
/* Copyright 2024 René Widera
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/api/trait.hpp
"
8
#include "
alpaka/api/unifiedCudaHip/tag.hpp
"
9
#include "
alpaka/api/unifiedCudaHip/trait.hpp
"
10
11
#include <string>
12
13
namespace
alpaka
14
{
15
namespace
exec
16
{
17
struct
GpuCuda
18
{
19
static
std::string
getName
()
20
{
21
return
"GpuCuda"
;
22
}
23
};
24
25
constexpr
GpuCuda
gpuCuda
;
26
}
// namespace exec
27
28
namespace
trait
29
{
30
template
<>
31
struct
IsExecutor
<
exec
::GpuCuda> : std::true_type
32
{
33
};
34
}
// namespace trait
35
}
// namespace alpaka
36
37
namespace
alpaka::onAcc::trait
38
{
39
template
<
typename
T_AtomicScope>
40
struct
GetAtomicImpl::Op
<
alpaka
::
exec::GpuCuda
, T_AtomicScope>
41
{
42
constexpr
decltype
(
auto
)
operator
()(
alpaka::exec::GpuCuda
const
, T_AtomicScope
const
)
const
43
{
44
return
internal::cudaHipAtomic;
45
}
46
};
47
}
// namespace alpaka::onAcc::trait
48
49
namespace
alpaka::unifiedCudaHip::trait
50
{
51
template
<>
52
struct
IsUnifiedExecutor<
alpaka
::
exec::GpuCuda
> : std::true_type
53
{
54
};
55
}
// namespace alpaka::unifiedCudaHip::trait
trait.hpp
tag.hpp
trait.hpp
alpaka::exec
Definition
executor.hpp:16
alpaka::exec::gpuCuda
constexpr GpuCuda gpuCuda
Definition
executor.hpp:25
alpaka::onAcc::trait
Definition
executor.hpp:38
alpaka::trait
Definition
api.hpp:21
alpaka
main alpaka namespace.
Definition
alpaka.hpp:76
alpaka::exec::GpuCuda
Definition
executor.hpp:18
alpaka::exec::GpuCuda::getName
static std::string getName()
Definition
executor.hpp:19
alpaka::onAcc::trait::GetAtomicImpl::Op
Definition
trait.hpp:223
alpaka::trait::IsExecutor
Definition
trait.hpp:104
Generated on
for alpaka by
1.16.1