PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
HostDevice.h
1#ifndef PBAT_HOST_DEVICE_H
2#define PBAT_HOST_DEVICE_H
3
4#if defined(__CUDACC__)
5 #define PBAT_HOST __host__
6 #define PBAT_DEVICE __device__
7#else
8 #define PBAT_HOST
9 #define PBAT_DEVICE
10#endif
11
12#define PBAT_HOST_DEVICE PBAT_HOST PBAT_DEVICE
13
14#endif // PBAT_HOST_DEVICE_H