libhsakmt: Marketing Name and AMDName support for APUs
For APUs, use /proc/cpuinfo to get Marketing name. Change-Id: I4a17516d26a092683f36631032be00ad44f7e7fe Signed-off-by: Lan Xiao <Lan.Xiao@amd.com>
This commit is contained in:
@@ -1075,6 +1075,7 @@ HSAKMT_STATUS fmm_init_process_apertures(unsigned int NumNodes)
|
||||
pacc = pci_alloc();
|
||||
pci_init(pacc);
|
||||
while (i < NumNodes) {
|
||||
memset(&props, 0, sizeof(props));
|
||||
ret = topology_sysfs_get_node_props(i, &props, &gpu_id, pacc);
|
||||
if (ret != HSAKMT_STATUS_SUCCESS)
|
||||
goto sysfs_parse_failed;
|
||||
|
||||
Reference in New Issue
Block a user