hwlocality_gl.3 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .TH "hwlocality_gl" 3 "Thu Sep 7 2023" "Version 2.9.3" "Hardware Locality (hwloc)" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. hwlocality_gl \- Interoperability with OpenGL displays
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "static \fBhwloc_obj_t\fP \fBhwloc_gl_get_display_osdev_by_port_device\fP (\fBhwloc_topology_t\fP topology, unsigned port, unsigned device)"
  13. .br
  14. .ti -1c
  15. .RI "static \fBhwloc_obj_t\fP \fBhwloc_gl_get_display_osdev_by_name\fP (\fBhwloc_topology_t\fP topology, const char *name)"
  16. .br
  17. .ti -1c
  18. .RI "static int \fBhwloc_gl_get_display_by_osdev\fP (\fBhwloc_topology_t\fP topology, \fBhwloc_obj_t\fP osdev, unsigned *port, unsigned *device)"
  19. .br
  20. .in -1c
  21. .SH "Detailed Description"
  22. .PP
  23. This interface offers ways to retrieve topology information about OpenGL displays\&.
  24. .PP
  25. Only the NVIDIA display locality information is currently available, using the NV-CONTROL X11 extension and the NVCtrl library\&.
  26. .SH "Function Documentation"
  27. .PP
  28. .SS "static int hwloc_gl_get_display_by_osdev (\fBhwloc_topology_t\fP topology, \fBhwloc_obj_t\fP osdev, unsigned * port, unsigned * device)\fC [inline]\fP, \fC [static]\fP"
  29. .PP
  30. Get the OpenGL display port and device corresponding to the given hwloc OS object\&. Retrieves the OpenGL display port (server) in \fCport\fP and device (screen) in \fCscreen\fP that correspond to the given hwloc OS device object\&.
  31. .PP
  32. \fBReturns\fP
  33. .RS 4
  34. 0 on success\&.
  35. .PP
  36. -1 if none could be found\&.
  37. .RE
  38. .PP
  39. The topology \fCtopology\fP 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\&.
  40. .SS "static \fBhwloc_obj_t\fP hwloc_gl_get_display_osdev_by_name (\fBhwloc_topology_t\fP topology, const char * name)\fC [inline]\fP, \fC [static]\fP"
  41. .PP
  42. Get the hwloc OS device object corresponding to the OpenGL display given by name\&.
  43. .PP
  44. \fBReturns\fP
  45. .RS 4
  46. The hwloc OS device object describing the OpenGL display whose name is \fCname\fP, built as ':port\&.device' such as ':0\&.0' \&.
  47. .PP
  48. \fCNULL\fP if none could be found\&.
  49. .RE
  50. .PP
  51. The topology \fCtopology\fP 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\&.
  52. .PP
  53. \fBNote\fP
  54. .RS 4
  55. The corresponding PCI device object can be obtained by looking at the OS device parent object (unless PCI devices are filtered out)\&.
  56. .RE
  57. .PP
  58. .SS "static \fBhwloc_obj_t\fP hwloc_gl_get_display_osdev_by_port_device (\fBhwloc_topology_t\fP topology, unsigned port, unsigned device)\fC [inline]\fP, \fC [static]\fP"
  59. .PP
  60. Get the hwloc OS device object corresponding to the OpenGL display given by port and device index\&.
  61. .PP
  62. \fBReturns\fP
  63. .RS 4
  64. The hwloc OS device object describing the OpenGL display whose port (server) is \fCport\fP and device (screen) is \fCdevice\fP\&.
  65. .PP
  66. \fCNULL\fP if none could be found\&.
  67. .RE
  68. .PP
  69. The topology \fCtopology\fP 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\&.
  70. .PP
  71. \fBNote\fP
  72. .RS 4
  73. The corresponding PCI device object can be obtained by looking at the OS device parent object (unless PCI devices are filtered out)\&.
  74. .RE
  75. .PP
  76. .SH "Author"
  77. .PP
  78. Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.