diff --git a/rocclr/runtime/device/hsa/hsacounters.cpp b/rocclr/runtime/device/hsa/hsacounters.cpp index 0b9e2c1c73..448d7f6d03 100644 --- a/rocclr/runtime/device/hsa/hsacounters.cpp +++ b/rocclr/runtime/device/hsa/hsacounters.cpp @@ -40,7 +40,7 @@ PerfCounter::create(HsaPmu hsaPmu) { HsaStatus status; hsaPmu_ = hsaPmu; - HsaCounterBlockId blockIndex = static_cast(info()->blockIndex_); + uint32_t blockIndex = static_cast(info()->blockIndex_); status = servicesapi->HsaPmuGetCounterBlockById(hsaPmu_, blockIndex, &counter_block_); if (status != kHsaStatusSuccess) { LogError("HsaPmuGetCounterBlockById, failed");