Support numa policy set by user
Add hipHostMallocNumaUser flag to hipHostMalloc() in order to support numa policy set by user. Change-Id: I6d70ed539a5f97f27187f2242b68849c0e27e4d6
此提交包含在:
1 父節點
81b15ed36e
當前提交
71c64e98a0
5 file changed
+199
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
封鎖使用者