Add node property to report number of GWS
Change-Id: I81263ca7ebfa3c0f9f1be78acfa0920e47d551b1
Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
[ROCm/ROCR-Runtime commit: 45d717d860]
这个提交包含在:
@@ -301,7 +301,8 @@ typedef struct _HsaNodeProperties
|
||||
// number hash created by the PSP
|
||||
HSAuint32 NumSdmaEngines; // number of PCIe optimized SDMA engines
|
||||
HSAuint32 NumSdmaXgmiEngines;// number of XGMI optimized SDMA engines
|
||||
HSAuint8 Reserved[36];
|
||||
HSAuint32 NumGws; // number of GWS barriers
|
||||
HSAuint8 Reserved[32];
|
||||
} HsaNodeProperties;
|
||||
|
||||
|
||||
|
||||
@@ -1005,6 +1005,8 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
|
||||
props->NumSdmaEngines = prop_val;
|
||||
else if (strcmp(prop_name, "num_sdma_xgmi_engines") == 0)
|
||||
props->NumSdmaXgmiEngines = prop_val;
|
||||
else if (strcmp(prop_name, "num_gws") == 0)
|
||||
props->NumGws = prop_val;
|
||||
}
|
||||
|
||||
hsa_gfxip = find_hsa_gfxip_device(props->DeviceId);
|
||||
|
||||
在新工单中引用
屏蔽一个用户