TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
hd.hpp File Reference

TM_HD marks functions that must compile identically for host and device. More...

Go to the source code of this file.

Macros

#define TM_HD
#define TM_HD_INLINE   inline

Detailed Description

TM_HD marks functions that must compile identically for host and device.

Code shared by a CPU reference path and a CUDA kernel uses it, so both paths run the same arithmetic.

Definition in file hd.hpp.

Macro Definition Documentation

◆ TM_HD

#define TM_HD

Definition at line 9 of file hd.hpp.

◆ TM_HD_INLINE

#define TM_HD_INLINE   inline

Definition at line 10 of file hd.hpp.