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]
This commit is contained in:
Tao Sang
2020-06-18 15:41:05 -04:00
committad av Tao Sang
förälder 2780b86df2
incheckning c2a9bed3d7
5 ändrade filer med 199 tillägg och 4 borttagningar
+4
Visa fil
@@ -257,6 +257,10 @@ hipError_t hipHostMalloc(void** ptr, size_t sizeBytes, unsigned int flags) {
ihipFlags |= CL_MEM_SVM_ATOMICS;
}
if (flags & hipHostMallocNumaUser) {
ihipFlags |= CL_MEM_FOLLOW_USER_NUMA_POLICY;
}
HIP_RETURN(ihipMalloc(ptr, sizeBytes, ihipFlags), *ptr);
}