RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
Macros | Functions
macros.hpp File Reference

Header file for common RAJA internal macro definitions. More...

#include "RAJA/config.hpp"
#include <cstdlib>
#include <stdexcept>
#include <stdio.h>

Go to the source code of this file.

Macros

#define RAJA_HOST_DEVICE
 
#define RAJA_DEVICE
 
#define RAJA_HOST
 
#define RAJA_SUPPRESS_HD_WARN
 
#define RAJA_INTERNAL_CLANG_HAS_BUILTIN(x)   0
 
#define RAJA_UNUSED_ARG(x)
 
#define RAJA_DIVIDE_CEILING_INT(dividend, divisor)    (((dividend) + (divisor) - 1) / (divisor))
 
#define RAJA_DEPRECATE(Msg)   __attribute__((deprecated(Msg)))
 Macros for marking deprecated features in RAJA. More...
 
#define RAJA_DEPRECATE_ALIAS(Msg)
 

Functions

template<typename... T>
RAJA_HOST_DEVICE RAJA_INLINE void RAJA_UNUSED_VAR (T &&...) noexcept
 
RAJA_HOST_DEVICE void RAJA_ABORT_OR_THROW (const char *str)
 

Detailed Description

Header file for common RAJA internal macro definitions.

Macro Definition Documentation

◆ RAJA_HOST_DEVICE

#define RAJA_HOST_DEVICE

◆ RAJA_DEVICE

#define RAJA_DEVICE

◆ RAJA_HOST

#define RAJA_HOST

◆ RAJA_SUPPRESS_HD_WARN

#define RAJA_SUPPRESS_HD_WARN

◆ RAJA_INTERNAL_CLANG_HAS_BUILTIN

#define RAJA_INTERNAL_CLANG_HAS_BUILTIN (   x)    0

◆ RAJA_UNUSED_ARG

#define RAJA_UNUSED_ARG (   x)

◆ RAJA_DIVIDE_CEILING_INT

#define RAJA_DIVIDE_CEILING_INT (   dividend,
  divisor 
)     (((dividend) + (divisor) - 1) / (divisor))

◆ RAJA_DEPRECATE

#define RAJA_DEPRECATE (   Msg)    __attribute__((deprecated(Msg)))

Macros for marking deprecated features in RAJA.

To deprecate a function, place immediately before the return type To deprecate a member of a class or struct, place immediately before the declaration To deprecate a typedef, place immediately before the declaration. To deprecate a struct or class, place immediately after the 'struct'/'class' keyword

◆ RAJA_DEPRECATE_ALIAS

#define RAJA_DEPRECATE_ALIAS (   Msg)

Function Documentation

◆ RAJA_UNUSED_VAR()

template<typename... T>
RAJA_HOST_DEVICE RAJA_INLINE void RAJA_UNUSED_VAR ( T &&  ...)
noexcept

◆ RAJA_ABORT_OR_THROW()

RAJA_HOST_DEVICE void RAJA_ABORT_OR_THROW ( const char *  str)
inline

OpenMP helper for the new RAJA reducer interface. Used in forall and launch