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


[ROCm/hip commit: 327e62e31a]
This commit is contained in:
foreman
2018-08-10 14:10:19 -04:00
orang tua 57e500b670
melakukan 867efccf75
+3 -3
Melihat File
@@ -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;