From 51f7944fcbdbdcec524fb129cc49d7725f97bff3 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Tue, 5 Oct 2021 18:03:48 -0400 Subject: [PATCH] SWDEV-303567 - Increase the size of AQL queue ROC_AQL_QUEUE_SIZE will control the size of AQL queue. The current sefault value is 4096. Change-Id: Icd2a4ee3ba554c06aa05b08defd922d2c63e43fd [ROCm/clr commit: 7fe696b6ef3288d21ffdd8512faa5c7853361c0a] --- projects/clr/rocclr/device/rocm/rocvirtual.cpp | 3 ++- projects/clr/rocclr/utils/flags.hpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/clr/rocclr/device/rocm/rocvirtual.cpp b/projects/clr/rocclr/device/rocm/rocvirtual.cpp index 07e3d36c5e..cda0f83be3 100644 --- a/projects/clr/rocclr/device/rocm/rocvirtual.cpp +++ b/projects/clr/rocclr/device/rocm/rocvirtual.cpp @@ -1121,9 +1121,10 @@ VirtualGPU::~VirtualGPU() { } } +// ================================================================================================ bool VirtualGPU::create() { // Pick a reasonable queue size - uint32_t queue_size = 1024; + uint32_t queue_size = ROC_AQL_QUEUE_SIZE; gpu_queue_ = roc_device_.acquireQueue(queue_size, cooperative_, cuMask_, priority_); if (!gpu_queue_) return false; diff --git a/projects/clr/rocclr/utils/flags.hpp b/projects/clr/rocclr/utils/flags.hpp index 81acf7c9f7..8d12e99fd5 100644 --- a/projects/clr/rocclr/utils/flags.hpp +++ b/projects/clr/rocclr/utils/flags.hpp @@ -264,6 +264,8 @@ release(bool, AMD_CPU_AFFINITY, false, \ "Reset CPU affinity of any runtime threads") \ release(bool, ROC_USE_FGS_KERNARG, true, \ "Use fine grain kernel args segment for supported asics") \ +release(uint, ROC_AQL_QUEUE_SIZE, 4096, \ + "AQL queue size in AQL packets") \ release(bool, GPU_STREAMOPS_CP_WAIT, false, \ "Force the stream wait memory operation to wait on CP.")