P4 to Git Change 1982021 by gandryey@gera-win10 on 2019/08/12 17:34:58
SWDEV-79445 - OCL generic changes and code clean-up - Following CL#1981122. Update privateMemSize_ for all scratch buffers. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#153 edit
This commit is contained in:
@@ -2011,7 +2011,6 @@ bool Device::allocScratch(uint regNum, const VirtualGPU* vgpu, uint vgprs) {
|
||||
ScopedLockVgpus lock(*this);
|
||||
|
||||
scratch_[sb]->size_ = newSize;
|
||||
scratch_[sb]->privateMemSize_ = regNum * sizeof(uint32_t);
|
||||
|
||||
uint64_t size = 0;
|
||||
uint64_t offset = 0;
|
||||
@@ -2025,6 +2024,7 @@ bool Device::allocScratch(uint regNum, const VirtualGPU* vgpu, uint vgprs) {
|
||||
scratchBuf->size_ = std::min(newSize, uint64_t(3 * Gi));
|
||||
// Note: Generic address space setup in HW requires 64KB alignment for scratch
|
||||
scratchBuf->size_ = amd::alignUp(newSize, 64 * Ki);
|
||||
scratchBuf->privateMemSize_ = regNum * sizeof(uint32_t);
|
||||
scratchBuf->offset_ = offset;
|
||||
size += scratchBuf->size_;
|
||||
offset += scratchBuf->size_;
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user