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
This commit is contained in:
German Andryeyev
2021-10-05 18:03:48 -04:00
parent 8c7ba7e3e7
commit 7fe696b6ef
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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;
+2
View File
@@ -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.")