Minor typo fixes.
Declare the type of HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT and add a missing break statement. Change-Id: I86ce8a2e620438e046b60cee991ce1fbe07a3e88
Этот коммит содержится в:
@@ -1015,6 +1015,7 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const {
|
||||
case HSA_AMD_AGENT_INFO_SVM_DIRECT_HOST_ACCESS:
|
||||
assert(regions_.size() != 0 && "No device local memory found!");
|
||||
*((bool*)value) = properties_.Capability.ui32.CoherentHostAccess == 1;
|
||||
break;
|
||||
case HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT:
|
||||
if (core::Runtime::runtime_singleton_->flag().coop_cu_count() &&
|
||||
(isa_->GetMajorVersion() == 9) && (isa_->GetMinorVersion() == 0) &&
|
||||
|
||||
@@ -316,6 +316,7 @@ typedef enum hsa_amd_agent_info_s {
|
||||
* Some processors support more CUs than can reliably be used in a cooperative
|
||||
* dispatch. This queries the count of CUs which are fully enabled for
|
||||
* cooperative dispatch.
|
||||
* The type of this attribute is uint32_t.
|
||||
*/
|
||||
HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT = 0xA014
|
||||
} hsa_amd_agent_info_t;
|
||||
|
||||
Ссылка в новой задаче
Block a user