From c34a2798ce524e19171c40089e4a578f33e8ec74 Mon Sep 17 00:00:00 2001 From: lyndonli Date: Tue, 11 Mar 2025 11:13:17 +0800 Subject: [PATCH] rocr: Remove redundant Refresh() call The initial call to Refresh() in the constructor is unnecessary as it's handled in Runtime::Load(). Signed-off-by: lyndonli --- runtime/hsa-runtime/core/util/flag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/util/flag.h b/runtime/hsa-runtime/core/util/flag.h index 6a6d7bd483..e4ed38c615 100644 --- a/runtime/hsa-runtime/core/util/flag.h +++ b/runtime/hsa-runtime/core/util/flag.h @@ -70,7 +70,7 @@ class Flag { const size_t DEFAULT_SCRATCH_SINGLE_LIMIT_ASYNC_PER_XCC = (3 * (1UL<<30)); // 3 GB const size_t DEFAULT_PCS_MAX_DEVICE_BUFFER_SIZE = (256 * (1UL<<20)); //256 MB - explicit Flag() { Refresh(); } + Flag() {} virtual ~Flag() {}