UCX 1.17
Unified Communication X
Loading...
Searching...
No Matches
memory_type.h
1
9#ifndef UCS_MEMORY_TYPE_H_
10#define UCS_MEMORY_TYPE_H_
11
12#include <ucs/sys/compiler_def.h>
13
14BEGIN_C_DECLS
15
16
20#define UCS_MEMORY_TYPES_CPU_ACCESSIBLE \
21 (UCS_BIT(UCS_MEMORY_TYPE_HOST) | UCS_BIT(UCS_MEMORY_TYPE_ROCM_MANAGED) | \
22 UCS_BIT(UCS_MEMORY_TYPE_ZE_HOST) | UCS_BIT(UCS_MEMORY_TYPE_ZE_MANAGED))
23
24
28#define ucs_memory_type_for_each(_x) \
29 for ((_x) = UCS_MEMORY_TYPE_HOST; (_x) < UCS_MEMORY_TYPE_LAST; (_x)++)
30
31
51
52
56extern const char *ucs_memory_type_names[];
57
61extern const char *ucs_memory_type_descs[];
62
63
64END_C_DECLS
65
66#endif
enum ucs_memory_type ucs_memory_type_t
Memory types.
ucs_memory_type
Memory types.
Definition memory_type.h:38
@ UCS_MEMORY_TYPE_ZE_MANAGED
Definition memory_type.h:47
@ UCS_MEMORY_TYPE_ZE_DEVICE
Definition memory_type.h:46
@ UCS_MEMORY_TYPE_HOST
Definition memory_type.h:39
@ UCS_MEMORY_TYPE_RDMA
Definition memory_type.h:44
@ UCS_MEMORY_TYPE_LAST
Definition memory_type.h:48
@ UCS_MEMORY_TYPE_ROCM
Definition memory_type.h:42
@ UCS_MEMORY_TYPE_ZE_HOST
Definition memory_type.h:45
@ UCS_MEMORY_TYPE_UNKNOWN
Definition memory_type.h:49
@ UCS_MEMORY_TYPE_CUDA_MANAGED
Definition memory_type.h:41
@ UCS_MEMORY_TYPE_ROCM_MANAGED
Definition memory_type.h:43
@ UCS_MEMORY_TYPE_CUDA
Definition memory_type.h:40