Add queries for HSA Ext interface version
Change-Id: I26860fb1364cd3a33cdc9b284ac807b2702bb241
[ROCm/ROCR-Runtime commit: ed1b0b9b1a]
Tento commit je obsažen v:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele