hwloc/hwloc-1.7.patch
Marcus Meissner 0551db4238 Accepting request 203462 from home:mvyskocil:branches:devel:libraries:c_c++
add hwloc to devel:libraries:c_c++ - upgraded package is mandatory for
devel:libraries:c_c++/mpich, therefor I wanted to have it here instead of
utilities

As it does provide shared library, it is not that pointless ...

OBS-URL: https://build.opensuse.org/request/show/203462
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/hwloc?expand=0&rev=1
2013-10-17 11:20:18 +00:00

36 lines
1.3 KiB
Diff

diff -ru hwloc-1.7-orig/src/topology-gl.c hwloc-1.7/src/topology-gl.c
--- hwloc-1.7-orig/src/topology-gl.c 2013-03-26 21:00:17.000000000 +0100
+++ hwloc-1.7/src/topology-gl.c 2013-04-23 16:18:46.497469010 +0200
@@ -85,12 +85,18 @@
gpu_number = ptr_binary_data[1];
free(ptr_binary_data);
+#ifdef NV_CTRL_PCI_DOMAIN
+
/* Gets the ID's of the GPU defined by gpu_number
* For further details, see the <NVCtrl/NVCtrlLib.h> */
err = XNVCTRLQueryTargetAttribute(display, NV_CTRL_TARGET_TYPE_GPU, gpu_number, 0,
NV_CTRL_PCI_DOMAIN, &nv_ctrl_pci_domain);
if (!err)
continue;
+#else
+ nv_ctrl_pci_domain = 0;
+#endif
+
err = XNVCTRLQueryTargetAttribute(display, NV_CTRL_TARGET_TYPE_GPU, gpu_number, 0,
NV_CTRL_PCI_BUS, &nv_ctrl_pci_bus);
@@ -102,11 +108,6 @@
if (!err)
continue;
- err = XNVCTRLQueryTargetAttribute(display, NV_CTRL_TARGET_TYPE_GPU, gpu_number, 0,
- NV_CTRL_PCI_DOMAIN, &nv_ctrl_pci_domain);
- if (!err)
- continue;
-
err = XNVCTRLQueryTargetAttribute(display, NV_CTRL_TARGET_TYPE_GPU, gpu_number, 0,
NV_CTRL_PCI_FUNCTION, &nv_ctrl_pci_func);
if (!err)
Only in hwloc-1.7/src: .topology-gl.c.swp