From b1b484544b61707f5ab39422a577a9ffe3203632 Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 8 Mar 2017 12:45:10 -0500 Subject: [PATCH] P4 to Git Change 1383017 by gandryey@gera-w8 on 2017/03/08 12:35:34 SWDEV-86035 - Add PAL backend to OpenCL - Enable PCI topology Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#43 edit --- rocclr/runtime/device/pal/paldevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocclr/runtime/device/pal/paldevice.cpp b/rocclr/runtime/device/pal/paldevice.cpp index c80e8e54b5..414552534c 100644 --- a/rocclr/runtime/device/pal/paldevice.cpp +++ b/rocclr/runtime/device/pal/paldevice.cpp @@ -424,10 +424,10 @@ void NullDevice::fillDeviceInfo( info_.extensions_ = getExtensionString(); info_.deviceTopology_.pcie.type = CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD; -/* info_.deviceTopology_.pcie.bus = palProp.pciProperties.busNumber; + info_.deviceTopology_.pcie.bus = palProp.pciProperties.busNumber; info_.deviceTopology_.pcie.device = palProp.pciProperties.deviceNumber; info_.deviceTopology_.pcie.function = palProp.pciProperties.functionNumber; -*/ + ::strncpy(info_.boardName_, palProp.gpuName, ::strnlen(palProp.gpuName, sizeof(info_.boardName_)));