libhsakmt: add NumCpQueues and NumSdmaQueuesPerEngine data field (v3)
NumCpQueues and NumSdmaQueuesPerEngine should be got by kfd driver not hardcode.
So add two data fields in HsaNodeProperties then thunk is able to get it from sysfs
that exposed by kfd.
v2: change NumCpQueues/NumSdmaQueuesPerEngine to one byte.
v3: merge two commits as one to avoid ABI update two times.
Change-Id: Ie386e4685f13493e22db6e207a399db6a4c5b9dc
Signed-off-by: Huang Rui <ray.huang@amd.com>
[ROCm/ROCR-Runtime commit: 06464b917d]
This commit is contained in:
1 parent
22b5e2b003
commit
cc2162d8e9
3 files changed
+12
-13
No files matched your search
@@ -1026,6 +1026,10 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
|
||||
props->NumSdmaXgmiEngines = prop_val;
|
||||
else if (strcmp(prop_name, "num_gws") == 0)
|
||||
props->NumGws = prop_val;
|
||||
else if (strcmp(prop_name, "num_sdma_queues_per_engine") == 0)
|
||||
props->NumSdmaQueuesPerEngine = prop_val;
|
||||
else if (strcmp(prop_name, "num_cp_queues") == 0)
|
||||
props->NumCpQueues = prop_val;
|
||||
}
|
||||
|
||||
hsa_gfxip = find_hsa_gfxip_device(props->DeviceId);
|
||||
|
||||
Reference in new issue
Block a user