From 8f58e11c31da8754a5d00146f70a6b737c52271b Mon Sep 17 00:00:00 2001 From: Ramesh Errabolu Date: Tue, 6 Aug 2019 18:13:26 -0500 Subject: [PATCH] Add override qualifier to CPU and GPU agent api Change-Id: I930e29d671b5dc81dece6f910d611056a54d2c85 [ROCm/ROCR-Runtime commit: a043c6acbb57653d63981f13238640eb5df56a9b] --- .../rocr-runtime/runtime/hsa-runtime/core/inc/amd_cpu_agent.h | 2 +- .../rocr-runtime/runtime/hsa-runtime/core/inc/amd_gpu_agent.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_cpu_agent.h b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_cpu_agent.h index 08c098456c..24e0011f00 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_cpu_agent.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_cpu_agent.h @@ -107,7 +107,7 @@ class CpuAgent : public core::Agent { __forceinline size_t num_cache() const { return cache_props_.size(); } // @brief Returns Hive ID - __forceinline uint64_t HiveId() const { return properties_.HiveID; } + __forceinline uint64_t HiveId() const override { return properties_.HiveID; } // @brief Returns data cache property. // diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_gpu_agent.h b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_gpu_agent.h index cc00277a74..4f6a6dc2b7 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_gpu_agent.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_gpu_agent.h @@ -300,7 +300,7 @@ class GpuAgent : public GpuAgentInt { // Getter & setters. // @brief Returns Hive ID - __forceinline uint64_t HiveId() const { return properties_.HiveID; } + __forceinline uint64_t HiveId() const override { return properties_.HiveID; } // @brief Returns node property. __forceinline const HsaNodeProperties& properties() const {