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>
This commit is contained in:
Honglei Huang authored and Huang, Honglei1 committed 2025-07-11 16:14:29 +08:00
1 والد 8d077dba3b
کامیت 9bc38e2ee6
8 files changed
+40 -2

No files matched your search

@@ -2590,6 +2590,19 @@ hsa_status_t hsa_executable_iterate_program_symbols(
CATCH;
}
hsa_status_t hsa_get_tile_config(hsa_agent_t agent_handle, void* config) {
TRY;
IS_OPEN();
IS_BAD_PTR(config);
const core::Agent* agent_object = core::Agent::Convert(agent_handle);
IS_VALID(agent_object);
return agent_object->driver().GetTileConfig(agent_object->node_id(),
static_cast<HsaGpuTileConfig*>(config));
CATCH;
}
//===--- Runtime Notifications --------------------------------------------===//
hsa_status_t hsa_status_string(