alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
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
10
11#include <string>
12
13namespace alpaka
14{
15 namespace exec
16 {
17 struct GpuHip
18 {
19 static std::string getName()
20 {
21 return "GpuHip";
22 }
23 };
24
25 constexpr GpuHip gpuHip;
26 } // namespace exec
27
28 namespace trait
29 {
30 template<>
31 struct IsExecutor<exec::GpuHip> : std::true_type
32 {
33 };
34 } // namespace trait
35} // namespace alpaka
36
38{
39 template<typename T_AtomicScope>
40 struct GetAtomicImpl::Op<alpaka::exec::GpuHip, T_AtomicScope>
41 {
42 constexpr decltype(auto) operator()(alpaka::exec::GpuHip const, T_AtomicScope const) const
43 {
44 return internal::cudaHipAtomic;
45 }
46 };
47} // namespace alpaka::onAcc::trait
48
49namespace alpaka::unifiedCudaHip::trait
50{
51 template<>
52 struct IsUnifiedExecutor<alpaka::exec::GpuHip> : std::true_type
53 {
54 };
55} // namespace alpaka::unifiedCudaHip::trait
constexpr GpuHip gpuHip
Definition executor.hpp:25
main alpaka namespace.
Definition alpaka.hpp:76
static std::string getName()
Definition executor.hpp:19