Minor typo fixes.

Declare the type of HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT
and add a missing break statement.

Change-Id: I86ce8a2e620438e046b60cee991ce1fbe07a3e88


[ROCm/ROCR-Runtime commit: 64dae113b1]
このコミットが含まれているのは:
Sean Keely
2022-04-22 21:03:58 -05:00
コミット cdf734c771
2個のファイルの変更2行の追加0行の削除
+1
ファイルの表示
@@ -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) &&
+1
ファイルの表示
@@ -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;