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 
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>,
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  ,
26 #endif
27  >;
28 
29  //! A std::tuple holding non-zero dimensions.
30  //!
31  //! NonZeroTestDims = std::tuple<Dim1, Dim2, ... DimN>
33 
34 } // namespace alpaka::test
typename detail::FilterImpl< TList, TPred >::type Filter
Definition: Filter.hpp:46
The test specifics.
Definition: TestAccs.hpp:27
std::tuple< DimInt< 0u >, DimInt< 1u >, DimInt< 2u >, DimInt< 3u > > TestDims
A std::tuple holding dimensions.
Definition: TestDims.hpp:27
meta::Filter< TestDims, meta::NonZero > NonZeroTestDims
A std::tuple holding non-zero dimensions.
Definition: TestDims.hpp:32
std::integral_constant< std::size_t, N > DimInt