Add queries for HSA Ext interface version

Change-Id: I26860fb1364cd3a33cdc9b284ac807b2702bb241
Tento commit je obsažen v:
David Yat Sin committed 2023-12-06 13:58:52 -05:00
1 rodič 803e37ded5
revize ed1b0b9b1a
2 files changed
+18

No files matched your search

+8
Zobrazit soubor
@@ -733,6 +733,14 @@ hsa_status_t Runtime::GetSystemInfo(hsa_system_info_t attribute, void* value) {
*((bool*)value) = core::Runtime::runtime_singleton_->XnackEnabled();
break;
}
case HSA_AMD_SYSTEM_INFO_EXT_VERSION_MAJOR: {
*((uint16_t*)value) = HSA_AMD_INTERFACE_VERSION_MAJOR;
break;
}
case HSA_AMD_SYSTEM_INFO_EXT_VERSION_MINOR: {
*((uint16_t*)value) = HSA_AMD_INTERFACE_VERSION_MINOR;
break;
}
default:
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
}
+10
Zobrazit soubor
@@ -519,6 +519,16 @@ typedef enum {
* this attribute is bool.
*/
HSA_AMD_SYSTEM_INFO_XNACK_ENABLED = 0x206,
/**
* Major version of the HSA runtime extension specification supported by the
* implementation. The type of this attribute is uint16_t.
*/
HSA_AMD_SYSTEM_INFO_EXT_VERSION_MAJOR = 0x207,
/**
* Minor version of the HSA runtime extension specification supported by the
* implementation. The type of this attribute is uint16_t.
*/
HSA_AMD_SYSTEM_INFO_EXT_VERSION_MINOR = 0x208,
} hsa_system_info_t;
/**