From 4e41ce26874ab486b71c820cba710e70949a0eda Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Thu, 6 Aug 2020 08:46:07 -0400 Subject: [PATCH] Fixing the memchannel calculation Change-Id: Ib5f5931cc0e1ee5b7cb356c2ede0cb951ee8c9de [ROCm/hip commit: 36b420ce68e65ed0c8af4143dd92d435fb169664] --- projects/hip/rocclr/hip_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/rocclr/hip_device.cpp b/projects/hip/rocclr/hip_device.cpp index 2d8900cded..f36fde4680 100644 --- a/projects/hip/rocclr/hip_device.cpp +++ b/projects/hip/rocclr/hip_device.cpp @@ -175,7 +175,7 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device ) deviceProps.maxGridSize[2] = INT32_MAX; deviceProps.clockRate = info.maxEngineClockFrequency_ * 1000; deviceProps.memoryClockRate = info.maxMemoryClockFrequency_ * 1000; - deviceProps.memoryBusWidth = info.globalMemChannels_ * 32; + deviceProps.memoryBusWidth = info.globalMemChannels_; deviceProps.totalConstMem = info.maxConstantBufferSize_; deviceProps.major = info.gfxipVersion_ / 100; deviceProps.minor = info.gfxipVersion_ % 100;