rocr/driver: add support for getting GPU tile configuration
- Implemented GetTileConfig in KfdDriver to retrieve tile configuration for a specific node. - Added a stub implementation of GetTileConfig in XdnaDriver. - Updated driver.h to include a virtual GetTileConfig method. - Extended hsa_internal.h with a new hsa_get_tile_config function. - Integrated hsa_get_tile_config into hsa.cpp to call the driver-specific implementation. - Updated driver headers to declare the new GetTileConfig method. Signed-off-by: Honglei Huang <Honglei1.Huang@amd.com>
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Huang, Honglei1
ebeveyn
8d077dba3b
işleme
9bc38e2ee6
@@ -110,8 +110,8 @@ hsa_status_t ImageManagerKv::Initialize(hsa_agent_t agent_handle) {
|
||||
status = HSA::hsa_agent_get_info(
|
||||
agent_, static_cast<hsa_agent_info_t>(HSA_AMD_AGENT_INFO_DRIVER_NODE_ID), &node_id);
|
||||
assert(status == HSA_STATUS_SUCCESS);
|
||||
HSAKMT_STATUS stat = HSAKMT_CALL(hsaKmtGetTileConfig(node_id, &tileConfig));
|
||||
assert(stat == HSAKMT_STATUS_SUCCESS);
|
||||
hsa_status_t stat = HSA::hsa_get_tile_config(agent_handle, &tileConfig);
|
||||
assert(stat == HSA_STATUS_SUCCESS);
|
||||
|
||||
// Initialize address library.
|
||||
// TODO(bwicakso) hard coded based on UGL parameters.
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle