Added support for agent attribute HSA_AMD_AGENT_INFO_MAX_WAVES_PER_CU
Change-Id: I2b90e7165384c4dce928a620a1782395267b35b0
This commit is contained in:
کامیت شده توسط
Kent Russell
والد
c30c25bd30
کامیت
30f1ec2691
Regular → Executable
@@ -340,6 +340,10 @@ hsa_status_t CpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
case HSA_AMD_AGENT_INFO_BDFID:
|
||||
*((uint32_t*)value) = static_cast<uint32_t>(properties_.LocationId);
|
||||
break;
|
||||
case HSA_AMD_AGENT_INFO_MAX_WAVES_PER_CU:
|
||||
*((uint32_t*)value) = static_cast<uint32_t>(
|
||||
properties_.NumSIMDPerCU * properties_.MaxWavesPerSIMD);
|
||||
break;
|
||||
default:
|
||||
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
break;
|
||||
|
||||
Regular → Executable
@@ -836,6 +836,10 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case HSA_AMD_AGENT_INFO_MAX_WAVES_PER_CU:
|
||||
*((uint32_t*)value) = static_cast<uint32_t>(
|
||||
properties_.NumSIMDPerCU * properties_.MaxWavesPerSIMD);
|
||||
break;
|
||||
default:
|
||||
return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
break;
|
||||
|
||||
Regular → Executable
+6
-1
@@ -116,7 +116,12 @@ typedef enum hsa_amd_agent_info_s {
|
||||
* Board name of Agent - populated from MarketingName of Kfd Node
|
||||
* The value is an Ascii string of 64 chars.
|
||||
*/
|
||||
HSA_AMD_AGENT_INFO_PRODUCT_NAME = 0xA009
|
||||
HSA_AMD_AGENT_INFO_PRODUCT_NAME = 0xA009,
|
||||
/**
|
||||
* Maximum number of waves possible in a Compute Unit.
|
||||
* The type of this attribute is uint32_t.
|
||||
*/
|
||||
HSA_AMD_AGENT_INFO_MAX_WAVES_PER_CU = 0xA00A
|
||||
} hsa_amd_agent_info_t;
|
||||
|
||||
/**
|
||||
|
||||
مرجع در شماره جدید
Block a user