From 95764032f1f68a32146e040c6fbeaaa18f4bd272 Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 10 Aug 2018 14:04:43 -0400 Subject: [PATCH] P4 to Git Change 1592223 by cpaquot@cpaquot-ocl-lc-lnx on 2018/08/10 13:50:47 SWDEV-145570 - [HIP] Report clockRate in kilohertz. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_device.cpp#11 edit [ROCm/hip commit: c4e3d90ba905a852f1856aaf34b82277a88d4873] --- projects/hip/api/hip/hip_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/api/hip/hip_device.cpp b/projects/hip/api/hip/hip_device.cpp index 531beb52f4..fac9eae04d 100644 --- a/projects/hip/api/hip/hip_device.cpp +++ b/projects/hip/api/hip/hip_device.cpp @@ -150,7 +150,7 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device ) deviceProps.maxGridSize[0] = UINT32_MAX; deviceProps.maxGridSize[1] = UINT32_MAX; deviceProps.maxGridSize[2] = UINT32_MAX; - deviceProps.clockRate = info.maxEngineClockFrequency_; + deviceProps.clockRate = info.maxEngineClockFrequency_ * 1000; deviceProps.memoryClockRate = info.maxMemoryClockFrequency_; deviceProps.memoryBusWidth = info.globalMemChannels_ * 32; deviceProps.totalConstMem = info.maxConstantBufferSize_;