Support numa policy set by user

Add hipHostMallocNumaUser flag to hipHostMalloc() in order to support
numa policy set by user.

Change-Id: I6d70ed539a5f97f27187f2242b68849c0e27e4d6
This commit is contained in:
Tao Sang
2020-06-18 15:41:05 -04:00
committed by Tao Sang
parent 81b15ed36e
commit 71c64e98a0
5 changed files with 199 additions and 4 deletions
@@ -171,6 +171,9 @@ enum hipLimit_t {
0x2 ///< Map the allocation into the address space for the current device. The device pointer
///< can be obtained with #hipHostGetDevicePointer.
#define hipHostMallocWriteCombined 0x4
#define hipHostMallocNumaUser \
0x20000000 ///< Host memory allocation will follow numa policy set by user
#define hipHostMallocCoherent \
0x40000000 ///< Allocate coherent memory. Overrides HIP_COHERENT_HOST_ALLOC for specific
///< allocation.