alpaka
Abstraction Library for Parallel Kernel Acceleration
AccGpuHipRt.hpp
Go to the documentation of this file.
1 /* Copyright 2022 Andrea Bocci
2  * SPDX-License-Identifier: MPL-2.0
3  */
4 
5 #pragma once
6 
8 #include "alpaka/acc/Tag.hpp"
10 
11 #ifdef ALPAKA_ACC_GPU_HIP_ENABLED
12 
13 namespace alpaka
14 {
15  template<typename TDim, typename TIdx>
16  using AccGpuHipRt = AccGpuUniformCudaHipRt<ApiHipRt, TDim, TIdx>;
17 
18  namespace trait
19  {
20  template<typename TDim, typename TIdx>
21  struct AccToTag<alpaka::AccGpuHipRt<TDim, TIdx>>
22  {
23  using type = alpaka::TagGpuHipRt;
24  };
25 
26  template<typename TDim, typename TIdx>
27  struct TagToAcc<alpaka::TagGpuHipRt, TDim, TIdx>
28  {
29  using type = alpaka::AccGpuHipRt<TDim, TIdx>;
30  };
31  } // namespace trait
32 } // namespace alpaka
33 
34 #endif // ALPAKA_ACC_GPU_HIP_ENABLED
The alpaka accelerator library.
typename trait::AccToTag< TAcc >::type AccToTag
maps an acc type to a tag type
Definition: Tag.hpp:47
typename trait::TagToAcc< TTag, TDim, TIdx >::type TagToAcc
maps a tag type to an acc type
Definition: Tag.hpp:54