hwlocality_levelzero.3 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .TH "hwlocality_levelzero" 3 "Thu Sep 7 2023" "Version 2.9.3" "Hardware Locality (hwloc)" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. hwlocality_levelzero \- Interoperability with the oneAPI Level Zero interface\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "static int \fBhwloc_levelzero_get_device_cpuset\fP (\fBhwloc_topology_t\fP topology, ze_device_handle_t device, \fBhwloc_cpuset_t\fP set)"
  13. .br
  14. .ti -1c
  15. .RI "static \fBhwloc_obj_t\fP \fBhwloc_levelzero_get_device_osdev\fP (\fBhwloc_topology_t\fP topology, ze_device_handle_t device)"
  16. .br
  17. .in -1c
  18. .SH "Detailed Description"
  19. .PP
  20. This interface offers ways to retrieve topology information about devices managed by the Level Zero API\&.
  21. .SH "Function Documentation"
  22. .PP
  23. .SS "static int hwloc_levelzero_get_device_cpuset (\fBhwloc_topology_t\fP topology, ze_device_handle_t device, \fBhwloc_cpuset_t\fP set)\fC [inline]\fP, \fC [static]\fP"
  24. .PP
  25. Get the CPU set of logical processors that are physically close to the Level Zero device \fCdevice\fP\&. Store in \fCset\fP the CPU-set describing the locality of the Level Zero device \fCdevice\fP\&.
  26. .PP
  27. Topology \fCtopology\fP and device \fCdevice\fP must match the local machine\&. The Level Zero must have been initialized with Sysman enabled (ZES_ENABLE_SYSMAN=1 in the environment)\&. I/O devices detection and the Level Zero component are not needed in the topology\&.
  28. .PP
  29. The function only returns the locality of the device\&. If more information about the device is needed, OS objects should be used instead, see \fBhwloc_levelzero_get_device_osdev()\fP\&.
  30. .PP
  31. This function is currently only implemented in a meaningful way for Linux; other systems will simply get a full cpuset\&.
  32. .PP
  33. \fBReturns\fP
  34. .RS 4
  35. 0 on success\&.
  36. .PP
  37. -1 on error, for instance if device information could not be found\&.
  38. .RE
  39. .PP
  40. .SS "static \fBhwloc_obj_t\fP hwloc_levelzero_get_device_osdev (\fBhwloc_topology_t\fP topology, ze_device_handle_t device)\fC [inline]\fP, \fC [static]\fP"
  41. .PP
  42. Get the hwloc OS device object corresponding to Level Zero device \fCdevice\fP\&.
  43. .PP
  44. \fBReturns\fP
  45. .RS 4
  46. The hwloc OS device object that describes the given Level Zero device \fCdevice\fP\&.
  47. .PP
  48. \fCNULL\fP if none could be found\&.
  49. .RE
  50. .PP
  51. Topology \fCtopology\fP and device \fCdv_ind\fP must match the local machine\&. I/O devices detection and the Level Zero component must be enabled in the topology\&. If not, the locality of the object may still be found using \fBhwloc_levelzero_get_device_cpuset()\fP\&.
  52. .PP
  53. \fBNote\fP
  54. .RS 4
  55. The corresponding hwloc PCI device may be found by looking at the result parent pointer (unless PCI devices are filtered out)\&.
  56. .RE
  57. .PP
  58. .SH "Author"
  59. .PP
  60. Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.