infinirt_cuda.cuh 781 Bytes
Newer Older
1
2
#ifndef __INFINIRT_CUDA_H__
#define __INFINIRT_CUDA_H__
PanZezhong's avatar
PanZezhong committed
3
#include "../infinirt_impl.h"
4

5
// NVIDIA namespace
6
namespace infinirt::cuda {
7
#ifdef ENABLE_NVIDIA_API
8
9
10
11
12
13
INFINIRT_DEVICE_API_IMPL
#else
INFINIRT_DEVICE_API_NOOP
#endif
} // namespace infinirt::cuda

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// ILUVATAR namespace
namespace infinirt::iluvatar {
#ifdef ENABLE_ILUVATAR_API
INFINIRT_DEVICE_API_IMPL
#else
INFINIRT_DEVICE_API_NOOP
#endif
} // namespace infinirt::iluvatar

// QY namespace
namespace infinirt::qy {
#ifdef ENABLE_QY_API
INFINIRT_DEVICE_API_IMPL
#else
INFINIRT_DEVICE_API_NOOP
#endif
} // namespace infinirt::qy

// HYGON namespace
namespace infinirt::hygon {
#ifdef ENABLE_HYGON_API
INFINIRT_DEVICE_API_IMPL
#else
INFINIRT_DEVICE_API_NOOP
#endif
} // namespace infinirt::hygon

41
#endif // __INFINIRT_CUDA_H__