SWDEV-309657 - Align Virtual queue size to sizeof(uint64_t).
Change-Id: Ia55d7316693bd13938875ce53f7849d5eb658e8c
[ROCm/clr commit: 7e32d6d909]
This commit is contained in:
committad av
Karthik Jayaprakash
förälder
c27731f98b
incheckning
2fdfb47092
@@ -2582,6 +2582,9 @@ bool VirtualGPU::createVirtualQueue(uint deviceQueueSize)
|
||||
// Add mask array for AmdAqlWrap slots
|
||||
allocSize += amd::alignUp(numSlots, DeviceQueueMaskSize) / 8;
|
||||
|
||||
// Make sure the allocation size aligns with DWORD.
|
||||
allocSize = amd::alignUp(allocSize, sizeof(uint64_t));
|
||||
|
||||
// CL_MEM_ALLOC_HOST_PTR/CL_MEM_READ_WRITE
|
||||
virtualQueue_ = new (dev().context()) amd::Buffer(dev().context(), CL_MEM_READ_WRITE, allocSize);
|
||||
|
||||
|
||||
Referens i nytt ärende
Block a user