Support numa policy set by user

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

Change-Id: I6d70ed539a5f97f27187f2242b68849c0e27e4d6


[ROCm/hip commit: 63051ca2e1]
이 커밋은 다음에 포함됨:
Tao Sang 작성하고 Tao Sang가 2020-06-19 21:23:58 -04:00를 커밋함
1 부모 2780b86df2
커밋 c2a9bed3d7
5 파일이 변경됨
+199 -4

검색과 일치하는 파일 없음

+3
파일 보기
@@ -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.