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]
此提交包含在:
German Andryeyev
2021-10-05 18:03:48 -04:00
父節點 914b777a95
當前提交 51f7944fcb
共有 2 個檔案被更改,包括 4 行新增 和 1 行删除
+2 -1
查看文件
@@ -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
查看文件
@@ -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.")