From 7da2a667139664ea7e55904fafafd4d24d093148 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 10 Aug 2018 14:10:19 -0400
Subject: [PATCH] P4 to Git Change 1592228 by cpaquot@cpaquot-ocl-lc-lnx on
2018/08/10 13:55:25
SWDEV-145570 - [HIP] Report maxGridSize as INT32_MAX, not UINT32_MAX
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#13 edit
---
hipamd/api/hip/hip_device.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hipamd/api/hip/hip_device.cpp b/hipamd/api/hip/hip_device.cpp
index 5c8de8c03a..5c03f13cc5 100644
--- a/hipamd/api/hip/hip_device.cpp
+++ b/hipamd/api/hip/hip_device.cpp
@@ -147,9 +147,9 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device )
deviceProps.maxThreadsDim[0] = info.maxWorkItemSizes_[0];
deviceProps.maxThreadsDim[1] = info.maxWorkItemSizes_[1];
deviceProps.maxThreadsDim[2] = info.maxWorkItemSizes_[2];
- deviceProps.maxGridSize[0] = UINT32_MAX;
- deviceProps.maxGridSize[1] = UINT32_MAX;
- deviceProps.maxGridSize[2] = UINT32_MAX;
+ deviceProps.maxGridSize[0] = INT32_MAX;
+ deviceProps.maxGridSize[1] = INT32_MAX;
+ deviceProps.maxGridSize[2] = INT32_MAX;
deviceProps.clockRate = info.maxEngineClockFrequency_ * 1000;
deviceProps.memoryClockRate = info.maxMemoryClockFrequency_ * 1000;
deviceProps.memoryBusWidth = info.globalMemChannels_ * 32;