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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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.")
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user