hwlocality_gl(3)
π¦ hwlocality_gl(3) π¦
okay so this is from the Library Functions Manual β the Hardware Locality (hwloc) one β and it's giving OpenGL display interoperability, bestie. no cap, let's go π
π NAME π
hwlocality_gl - Interoperability with OpenGL displays
β¨ SYNOPSIS β¨
π Functions π
hwloc_obj_t hwloc_gl_get_display_osdev_by_port_device (hwloc_topology_t
topology, unsigned port, unsigned device)
hwloc_obj_t hwloc_gl_get_display_osdev_by_name (hwloc_topology_t
topology, const char *name)
int hwloc_gl_get_display_by_osdev (hwloc_topology_t topology,
hwloc_obj_t osdev, unsigned *port, unsigned *device)
πΈ Detailed Description πΈ
This interface is literally your way to retrieve topology information about OpenGL displays.
Only the NVIDIA display locality information is currently available β it's using the NV-CONTROL X11 extension and the NVCtrl library, iykyk.
β οΈ This code may hang when trying to connect to the X server. Hence the GL component is disabled unless HWLOC_GL=1 in the environment.
π Function Documentation π
hwloc_gl_get_display_by_osdev [inline]
int hwloc_gl_get_display_by_osdev (hwloc_topology_t topology, hwloc_obj_t
osdev, unsigned * port, unsigned * device) [inline]
Gets the OpenGL display port and device corresponding to the given hwloc OS object. Retrieves the OpenGL display port (server) in port and device (screen) in screen that correspond to the given hwloc OS device object.
π Returns π
0on success.-1if none could be found.
The topology (topology) does not necessarily have to match the current machine. For instance the topology may be an XML import of a remote host. I/O devices detection and the GL component must be enabled in the topology.
π Note π
The GL backend creating these OS devices is disabled by default since it may cause hwloc to hang when trying to connect to the X server. Set HWLOC_GL=1 in the environment to reenable it.
hwloc_gl_get_display_osdev_by_name [inline]
hwloc_obj_t hwloc_gl_get_display_osdev_by_name (hwloc_topology_t topology,
const char * name) [inline]
Gets the hwloc OS device object corresponding to the OpenGL display given by name.
π Returns π
- The hwloc OS device object describing the OpenGL display whose name is
name, built as":port.device"such as":0.0". NULLif none could be found.
The topology (topology) does not necessarily have to match the current machine. For instance the topology may be an XML import of a remote host. I/O devices detection and the GL component must be enabled in the topology.
π Note π
The GL backend creating these OS devices is disabled by default since it may cause hwloc to hang when trying to connect to the X server. Set HWLOC_GL=1 in the environment to reenable it. The corresponding PCI device object can be obtained by looking at the OS device parent object (unless PCI devices are filtered out).
hwloc_gl_get_display_osdev_by_port_device [inline]
hwloc_obj_t hwloc_gl_get_display_osdev_by_port_device (hwloc_topology_t
topology, unsigned port, unsigned device) [inline]
Gets the hwloc OS device object corresponding to the OpenGL display given by port and device index.
π Returns π
- The hwloc OS device object describing the OpenGL display whose port (server) is
portand device (screen) isdevice. NULLif none could be found.
The topology (topology) does not necessarily have to match the current machine. For instance the topology may be an XML import of a remote host. I/O devices detection and the GL component must be enabled in the topology.
π Note π
The GL backend creating these OS devices is disabled by default since it may cause hwloc to hang when trying to connect to the X server. Set HWLOC_GL=1 in the environment to reenable it. The corresponding PCI device object can be obtained by looking at the OS device parent object (unless PCI devices are filtered out).
π Author π
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
okay that's the whole vibe, bestie π«Ά this is from the Hardware Locality (hwloc) manual, Version 2.15.0 β date: not listed in the original footer, so we're not inventing one β periodt π
β¨
π¦ where this page comes from
- arch rolling: hwloc 2.15.0-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms