You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/hip/hcc_detail/hip_runtime_api.h
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -111,17 +111,21 @@ enum hipLimit_t
111
111
112
112
//! Flags that can be used with hipHostMalloc
113
113
#definehipHostMallocDefault0x0
114
-
#definehipHostMallocPortable0x1
115
-
#definehipHostMallocMapped0x2
114
+
#definehipHostMallocPortable0x1///< Memory is considered allocated by all contexts.
115
+
#definehipHostMallocMapped0x2///< Map the allocation into the address space for the current device. The device pointer can be obtained with #hipHostGetDevicePointer.
116
116
#definehipHostMallocWriteCombined0x4
117
+
#definehipHostMallocCoherent0x40000000///< Allocate coherent memory. Overrides HIP_COHERENT_HOST_ALLOC for specific allocation.
118
+
#definehipHostMallocNonCoherent0x80000000///< Allocate non-coherent memory. Overrides HIP_COHERENT_HOST_ALLOC for specific allocation.
119
+
117
120
118
121
//! Flags that can be used with hipHostRegister
119
122
#definehipHostRegisterDefault0x0///< Memory is Mapped and Portable
120
-
#definehipHostRegisterPortable0x1///< Memory is considered registered by all contexts. HIP only supports one context so this is always assumed true.
123
+
#definehipHostRegisterPortable0x1///< Memory is considered registered by all contexts.
121
124
#definehipHostRegisterMapped0x2///< Map the allocation into the address space for the current device. The device pointer can be obtained with #hipHostGetDevicePointer.
122
125
#definehipHostRegisterIoMemory0x4///< Not supported.
123
126
124
127
128
+
125
129
#definehipDeviceScheduleAuto0x0///< Automatically select between Spin and Yield
126
130
#definehipDeviceScheduleSpin0x1///< Dedicate a CPU core to spin-wait. Provides lowest latency, but burns a CPU core and may consume more power.
127
131
#definehipDeviceScheduleYield0x2///< Yield the CPU to the operating system when waiting. May increase latency, but lowers power and is friendlier to other threads in the system.
0 commit comments