Celeritas  0.5.0-56+6b053cd
Macros | Variables
DeviceRuntimeApi.hh File Reference

Include CUDA or HIP runtime APIs for compiling with host/cc compiler. More...

#include "corecel/Config.hh"
This graph shows which files directly or indirectly include this file:

Macros

#define CELER_EU_PER_CU   0
 Execution units per compute unit. More...
 

Variables

int CorecelDeviceRuntimeApiHh
 Declare a dummy variable to be referenced in disabled CELER_BLAH calls. More...
 

Detailed Description

Include CUDA or HIP runtime APIs for compiling with host/cc compiler.

Macro Definition Documentation

◆ CELER_EU_PER_CU

#define CELER_EU_PER_CU   0

Execution units per compute unit.

AMD multiprocessors each have 4 SIMD units per compute unit, but there is no device attribute or compiler definition that provides this information. For CUDA, each streaming multiprocessor (MP) is a single "execution unit" and a "compute unit".

Variable Documentation

◆ CorecelDeviceRuntimeApiHh

int CorecelDeviceRuntimeApiHh
extern

Declare a dummy variable to be referenced in disabled CELER_BLAH calls.

With this declaration, the build will fail if this include is missing. (Unfortunately, since the use of this symbol is embedded in a macro, IWYU won't include this file automatically.)