From 6f2a603277615aedd948389eb226fa559366b69d Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Wed, 19 Feb 2025 15:48:12 -0500 Subject: [PATCH] SWDEV-497619 - Allocate extra space in CB Compute doesn't support IB chaining, but RGP may collect perf counters, which require more space in CB. Increase CB size if RGP is enabled. Change-Id: Iaa0a620ead8541a679b0dfe5e5711af5afdba545 [ROCm/clr commit: 63cf3057ba7761cb31af9540fdad8f24a3a1ed3b] --- projects/clr/rocclr/device/pal/palvirtual.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/clr/rocclr/device/pal/palvirtual.cpp b/projects/clr/rocclr/device/pal/palvirtual.cpp index b1120f5da2..14da42e88c 100644 --- a/projects/clr/rocclr/device/pal/palvirtual.cpp +++ b/projects/clr/rocclr/device/pal/palvirtual.cpp @@ -891,6 +891,9 @@ bool VirtualGPU::create(bool profiling, uint deviceQueueSize, uint rtCUs, createInfo.allocInfo[Pal::CommandDataAlloc].allocHeap = Pal::GpuHeapGartUswc; createInfo.allocInfo[Pal::CommandDataAlloc].suballocSize = VirtualGPU::Queue::MaxCommands * (320 + ((profiling) ? 96 : 0)); + if (dev().captureMgr() != nullptr) { + createInfo.allocInfo[Pal::CommandDataAlloc].suballocSize += 512; + } createInfo.allocInfo[Pal::CommandDataAlloc].allocSize = dev().settings().maxCmdBuffers_ * createInfo.allocInfo[Pal::CommandDataAlloc].suballocSize; @@ -2510,7 +2513,6 @@ void VirtualGPU::PostDeviceEnqueue(const amd::Kernel& kernel, const HSAILKernel& param->releaseHostCP = 0; param->parentAQL = vmParentWrap; param->dedicatedQueue = dev().settings().useDeviceQueue_; - param->useATC = dev().settings().svmFineGrainSystem_; // Fill the scratch buffer information if (hsaKernel.prog().maxScratchRegs() > 0) { @@ -2772,7 +2774,6 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes, } else { dispatchParam.wavesPerSh = 0; } - dispatchParam.useAtc = dev().settings().svmFineGrainSystem_ ? true : false; dispatchParam.kernargSegmentSize = hsaKernel.argsBufferSize(); dispatchParam.aqlPacketIndex = aql_index; // Run AQL dispatch in HW