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
This commit is contained in:
foreman
2017-03-08 12:45:10 -05:00
förälder 9a086790cb
incheckning b1b484544b
+2 -2
Visa fil
@@ -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_)));