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: 7fe696b6ef]
This commit is contained in:
German Andryeyev
2021-10-05 18:03:48 -04:00
parent 914b777a95
commit 51f7944fcb
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
@@ -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
Vedi 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.")