Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_GpuAssert.H File Reference

Assertions for GPU device code. More...

#include <AMReX_Config.H>
#include <cassert>

Go to the source code of this file.

Macros

#define AMREX_DEVICE_ASSERT(flag)   assert(flag)
 Assert flag in CUDA, HIP, or SYCL device code.
 

Detailed Description

Assertions for GPU device code.

Macro Definition Documentation

◆ AMREX_DEVICE_ASSERT

#define AMREX_DEVICE_ASSERT (   flag)    assert(flag)

Assert flag in CUDA, HIP, or SYCL device code.

The macro maps to assert and is defined only for those GPU backends on non-Apple platforms.