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]
This commit is contained in:
Oak Zeng
2019-05-10 12:08:07 -05:00
والد 82670ee7fc
کامیت b17d287432
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
@@ -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);