Block-Structured AMR Software Framework
AMReX_GpuKernelInfo.H
Go to the documentation of this file.
1 #ifndef AMREX_GPU_KERNEL_INFO_H_
2 #define AMREX_GPU_KERNEL_INFO_H_
3 #include <AMReX_Config.H>
4 
5 namespace amrex::Gpu {
6 
7 class KernelInfo
8 {
9 public:
10  KernelInfo& setReduction (bool flag) { has_reduction = flag; return *this; }
11  [[nodiscard]] bool hasReduction () const { return has_reduction; }
12 private:
13  bool has_reduction = false;
14 };
15 
16 }
17 
18 #endif
Definition: AMReX_GpuKernelInfo.H:8
KernelInfo & setReduction(bool flag)
Definition: AMReX_GpuKernelInfo.H:10
bool has_reduction
Definition: AMReX_GpuKernelInfo.H:13
bool hasReduction() const
Definition: AMReX_GpuKernelInfo.H:11
Definition: AMReX_BaseFwd.H:52