alpaka
Abstraction Library for Parallel Kernel Acceleration
TagAccIsEnabled.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// include all Acc's because of the struct AccIsEnabled
4
// if an acc is not include, it will be not enabled independent of the compiler flags
5
#include "
alpaka/acc/AccCpuOmp2Blocks.hpp
"
6
#include "
alpaka/acc/AccCpuOmp2Threads.hpp
"
7
#include "
alpaka/acc/AccCpuSerial.hpp
"
8
#include "
alpaka/acc/AccCpuSycl.hpp
"
9
#include "
alpaka/acc/AccCpuTbbBlocks.hpp
"
10
#include "
alpaka/acc/AccCpuThreads.hpp
"
11
#include "
alpaka/acc/AccFpgaSyclIntel.hpp
"
12
#include "
alpaka/acc/AccGpuCudaRt.hpp
"
13
#include "
alpaka/acc/AccGpuHipRt.hpp
"
14
#include "
alpaka/acc/Tag.hpp
"
15
#include "
alpaka/dim/DimIntegralConst.hpp
"
16
#include "
alpaka/meta/Filter.hpp
"
17
18
#include <type_traits>
19
20
namespace
alpaka
21
{
22
//! \brief check if the accelerator is enabled for a given tag
23
//! \tparam TTag alpaka tag type
24
template
<concepts::Tag TTag,
typename
=
void
>
25
struct
AccIsEnabled
: std::false_type
26
{
27
};
28
29
template
<concepts::Tag TTag>
30
struct
AccIsEnabled
<TTag, std::void_t<TagToAcc<TTag, alpaka::DimInt<1>, int>>> : std::true_type
31
{
32
};
33
34
//! list of all tags where the related accelerator is enabled
35
using
EnabledAccTags
=
alpaka::meta::Filter<AccTags, alpaka::AccIsEnabled>
;
36
37
}
// namespace alpaka
AccCpuOmp2Blocks.hpp
AccCpuOmp2Threads.hpp
AccCpuSerial.hpp
AccCpuSycl.hpp
AccCpuTbbBlocks.hpp
AccCpuThreads.hpp
AccFpgaSyclIntel.hpp
AccGpuCudaRt.hpp
AccGpuHipRt.hpp
DimIntegralConst.hpp
Filter.hpp
Tag.hpp
alpaka::meta::Filter
typename detail::FilterImpl< TList, TPred >::type Filter
Definition:
Filter.hpp:46
alpaka
The alpaka accelerator library.
Definition:
AccCpuOmp2Blocks.hpp:49
alpaka::EnabledAccTags
alpaka::meta::Filter< AccTags, alpaka::AccIsEnabled > EnabledAccTags
list of all tags where the related accelerator is enabled
Definition:
TagAccIsEnabled.hpp:35
alpaka::AccIsEnabled
check if the accelerator is enabled for a given tag
Definition:
TagAccIsEnabled.hpp:26
include
alpaka
acc
TagAccIsEnabled.hpp
Generated on Thu Nov 21 2024 22:46:14 for alpaka by
1.9.1