Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_GpuAssert.H
Go to the documentation of this file.
1
#ifndef AMREX_GPU_ASSERT_H_
2
#define AMREX_GPU_ASSERT_H_
3
#include <AMReX_Config.H>
4
16
#if !defined(__APPLE__)
17
18
#include <cassert>
19
20
#ifdef AMREX_USE_SYCL
21
# include <sycl/sycl.hpp>
22
#endif
23
24
#if defined(AMREX_USE_SYCL)
25
# define AMREX_DEVICE_ASSERT(flag) assert(flag)
26
#elif defined(AMREX_USE_CUDA)
27
# define AMREX_DEVICE_ASSERT(flag) assert(flag)
28
#elif defined(AMREX_USE_HIP)
29
# define AMREX_DEVICE_ASSERT(flag) assert(flag)
30
#endif
31
32
#endif
// !defined(__APPLE__)
33
#endif
// AMREX_GPU_ASSERT_H_
Src
Base
AMReX_GpuAssert.H
Generated by
1.9.8