From a0903ecc7a7e54d759ff67df4e383c6053d49a64 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Thu, 6 Feb 2025 16:27:46 +0000 Subject: [PATCH] rocr: Remove unused fields in amd_queue_t scratch_wave64_lane_byte_size and alt_scratch_wave64_lane_byte_size are not used by CP FW. [ROCm/ROCR-Runtime commit: 2f8a9b28d06f50cc9a1c3cbfdcec04d4d8f3ec73] --- .../runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp index 82d2c71167..d8d4de90f2 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp @@ -1910,10 +1910,6 @@ void AqlQueue::InitScratchSRD() { amd_queue_.alt_scratch_backing_memory_location = queue_scratch_.alt_queue_process_offset; const auto& agent_props = agent_->properties(); - const uint32_t num_xcc = agent_props.NumXcc; - // report size per XCC - amd_queue_.scratch_backing_memory_byte_size = queue_scratch_.main_size / num_xcc; - amd_queue_.alt_scratch_backing_memory_byte_size = queue_scratch_.alt_size / num_xcc; // For backwards compatibility this field records the per-lane scratch // for a 64 lane wavefront. If scratch was allocated for 32 lane waves