From a29b3ab8680ae7e435db7042b731e540d48ee28b Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Fri, 21 Jul 2023 16:30:44 -0400 Subject: [PATCH] Fix out of order initializer for memory region Silence out of order initializer compile warnings during memory region initialization. Change-Id: Idbbdd93d3ea8cda289d25a473b3882b920b2e8d8 [ROCm/ROCR-Runtime commit: 42274cfc5950a496d20aec65613cf1d73e13c5c7] --- .../runtime/hsa-runtime/core/inc/amd_memory_region.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h index c3da1c770d..d9dcbd072b 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/amd_memory_region.h @@ -184,11 +184,11 @@ class MemoryRegion : public core::MemoryRegion { HsaMemMapFlags map_flag_; - size_t max_single_alloc_size_; - // Enables creating an extended scope fine grained memory pool region const bool extended_scope_fine_grain_; + size_t max_single_alloc_size_; + // Used to collect total system memory static size_t max_sysmem_alloc_size_;