Support numa policy set by user

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

Change-Id: I6d70ed539a5f97f27187f2242b68849c0e27e4d6
Tá an tiomantas seo le fáil i:
Tao Sang údaraithe agus Tao Sang tiomanta 2020-06-19 21:23:58 -04:00
1 tuismitheoir 81b15ed36e
tiomantas 71c64e98a0
5 comhad athraithe
+199 -4

Níor tháinig aon chomhaid le do chuardach

+4
Féach ar an gComhad
@@ -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);
}