alpaka
Abstraction Library for Parallel Kernel Acceleration
TestDims.hpp
Go to the documentation of this file.
1
/* Copyright 2023 Benjamin Worpitz, Andrea Bocci, Jan Stephan, Bernhard Manfred Gruber
2
* SPDX-License-Identifier: MPL-2.0
3
*/
4
5
#pragma once
6
7
#include "
alpaka/core/BoostPredef.hpp
"
8
#include "
alpaka/dim/DimIntegralConst.hpp
"
9
#include "
alpaka/meta/Filter.hpp
"
10
#include "
alpaka/meta/NonZero.hpp
"
11
12
#include <tuple>
13
14
namespace
alpaka::test
15
{
16
//! A std::tuple holding dimensions.
17
using
TestDims
= std::tuple<
18
DimInt<0u>
,
19
DimInt<1u>
,
20
DimInt<2u>
,
21
DimInt<3u>
22
// CUDA, HIP and SYCL accelerators do not support 4D buffers and 4D acceleration.
23
#if !defined(ALPAKA_ACC_GPU_CUDA_ENABLED) && !defined(ALPAKA_ACC_GPU_HIP_ENABLED) && !defined(ALPAKA_ACC_SYCL_ENABLED)
24
,
25
DimInt<4u>
26
#endif
27
>;
28
29
//! A std::tuple holding non-zero dimensions.
30
//!
31
//! NonZeroTestDims = std::tuple<Dim1, Dim2, ... DimN>
32
using
NonZeroTestDims
=
meta::Filter<TestDims, meta::NonZero>
;
33
34
}
// namespace alpaka::test
BoostPredef.hpp
DimIntegralConst.hpp
Filter.hpp
NonZero.hpp
alpaka::meta::Filter
typename detail::FilterImpl< TList, TPred >::type Filter
Definition:
Filter.hpp:46
alpaka::test
The test specifics.
Definition:
TestAccs.hpp:27
alpaka::test::TestDims
std::tuple< DimInt< 0u >, DimInt< 1u >, DimInt< 2u >, DimInt< 3u > > TestDims
A std::tuple holding dimensions.
Definition:
TestDims.hpp:27
alpaka::test::NonZeroTestDims
meta::Filter< TestDims, meta::NonZero > NonZeroTestDims
A std::tuple holding non-zero dimensions.
Definition:
TestDims.hpp:32
alpaka::DimInt
std::integral_constant< std::size_t, N > DimInt
Definition:
DimIntegralConst.hpp:15
include
alpaka
test
dim
TestDims.hpp
Generated on Thu Dec 12 2024 11:51:45 for alpaka by
1.9.1