P4 to Git Change 1989264 by gandryey@gera-win10 on 2019/08/26 18:05:35
SWDEV-79445 - OCL generic changes and code clean-up
- Fix a typo, use privateMemSize instead of numMaxWaves
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#159 edit
[ROCm/clr commit: 5cbc8ebc58]
This commit is contained in:
@@ -2010,7 +2010,7 @@ bool Device::allocScratch(uint regNum, const VirtualGPU* vgpu, uint vgprs) {
|
||||
// Current private mem size
|
||||
uint32_t privateMemSize = regNum * sizeof(uint32_t);
|
||||
// Max between the allocation and current
|
||||
privateMemSize = std::max(privateMemSize, scratch_[sb]->numMaxWaves_);
|
||||
privateMemSize = std::max(privateMemSize, scratch_[sb]->privateMemSize_);
|
||||
uint64_t newSize =
|
||||
static_cast<uint64_t>(info().wavefrontWidth_) * privateMemSize * numMaxWaves * numTotalCUs;
|
||||
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user