From 5cbc8ebc588edaf401717bab607cdd1d6923e45a Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 26 Aug 2019 18:12:24 -0400
Subject: [PATCH] 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
---
rocclr/runtime/device/pal/paldevice.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/pal/paldevice.cpp b/rocclr/runtime/device/pal/paldevice.cpp
index 1247a0ef0b..31ceb453db 100644
--- a/rocclr/runtime/device/pal/paldevice.cpp
+++ b/rocclr/runtime/device/pal/paldevice.cpp
@@ -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(info().wavefrontWidth_) * privateMemSize * numMaxWaves * numTotalCUs;