Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_GpuControl.H File Reference
#include <AMReX_Config.H>
#include <AMReX_GpuQualifiers.H>
#include <AMReX_GpuTypes.H>
#include <utility>

Go to the source code of this file.

Classes

struct  amrex::Gpu::LaunchSafeGuard
struct  amrex::Gpu::GraphSafeGuard
struct  amrex::Gpu::SingleStreamRegion
struct  amrex::Gpu::NoSyncRegion

Namespaces

namespace  amrex
namespace  amrex::Gpu

Macros

#define AMREX_GPU_STREAM_ALLOC_SUPPORT   1
#define AMREX_HIP_OR_CUDA(a, b)
#define AMREX_HIP_OR_CUDA_OR_SYCL(a, b, c)
#define AMREX_GPU_OR_CPU(a, b)
#define AMREX_SYCL_ONLY(a)
#define AMREX_SYCL_1D_ONLY(a)
#define AMREX_SYCL_2D_ONLY(a)
#define AMREX_SYCL_3D_ONLY(a)
#define AMREX_DEFAULT_RUNON

Typedefs

using amrex::gpuStream_t = cudaStream_t

Enumerations

enum struct  amrex::RunOn { amrex::Gpu , amrex::Cpu , amrex::Device =Gpu , amrex::Host =Cpu }

Functions

bool amrex::Gpu::inLaunchRegion () noexcept
bool amrex::Gpu::notInLaunchRegion () noexcept
bool amrex::Gpu::setLaunchRegion (bool launch) noexcept
bool amrex::Gpu::inGraphRegion ()
bool amrex::Gpu::notInGraphRegion ()
bool amrex::Gpu::setGraphRegion (bool graph)
bool amrex::Gpu::inSingleStreamRegion () noexcept
bool amrex::Gpu::inNoSyncRegion () noexcept
bool amrex::Gpu::setSingleStreamRegion (bool b) noexcept
bool amrex::Gpu::setNoSyncRegion (bool b) noexcept

Macro Definition Documentation

◆ AMREX_DEFAULT_RUNON

#define AMREX_DEFAULT_RUNON

◆ AMREX_GPU_OR_CPU

#define AMREX_GPU_OR_CPU ( a,
b )
Value:
a

◆ AMREX_GPU_STREAM_ALLOC_SUPPORT

#define AMREX_GPU_STREAM_ALLOC_SUPPORT   1

◆ AMREX_HIP_OR_CUDA

#define AMREX_HIP_OR_CUDA ( a,
b )
Value:
b

◆ AMREX_HIP_OR_CUDA_OR_SYCL

#define AMREX_HIP_OR_CUDA_OR_SYCL ( a,
b,
c )
Value:
b

◆ AMREX_SYCL_1D_ONLY

#define AMREX_SYCL_1D_ONLY ( a)
Value:
((void)0)

◆ AMREX_SYCL_2D_ONLY

#define AMREX_SYCL_2D_ONLY ( a)
Value:
((void)0)

◆ AMREX_SYCL_3D_ONLY

#define AMREX_SYCL_3D_ONLY ( a)
Value:
((void)0)

◆ AMREX_SYCL_ONLY

#define AMREX_SYCL_ONLY ( a)
Value:
((void)0)