Skip to content

L0: switch to zesInit() #695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions config/hwloc.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1410,10 +1410,9 @@ return clGetDeviceIDs(0, 0, 0, NULL, NULL);
echo
echo "**** LevelZero configuration"

HWLOC_PKG_CHECK_MODULES([LEVELZERO], [libze_loader], [zesDevicePciGetProperties], [level_zero/zes_api.h],
HWLOC_PKG_CHECK_MODULES([LEVELZERO], [libze_loader], [zesDriverGetDeviceByUuidExp], [level_zero/zes_api.h],
[hwloc_levelzero_happy=yes
HWLOC_LEVELZERO_REQUIRES=libze_loader
AC_CHECK_LIB([ze_loader], [zesInit], [AC_DEFINE(HWLOC_HAVE_ZESINIT, 1, [Define to 1 if zesInit is available])])
AC_CHECK_LIB([ze_loader], [zeDevicePciGetPropertiesExt], [AC_DEFINE(HWLOC_HAVE_ZEDEVICEPCIGETPROPERTIESEXT, 1, [Define to 1 if zeDevicePciGetPropertiesExt is available])])
], [hwloc_levelzero_happy=no])
if test x$hwloc_levelzero_happy = xno; then
Expand All @@ -1422,9 +1421,8 @@ return clGetDeviceIDs(0, 0, 0, NULL, NULL);
AC_CHECK_LIB([ze_loader], [zeInit], [
AC_CHECK_HEADERS([level_zero/zes_api.h], [
AC_CHECK_LIB([ze_loader],
[zesDevicePciGetProperties],
[zesDriverGetDeviceByUuidExp],
[HWLOC_LEVELZERO_LIBS="-lze_loader"
AC_CHECK_LIB([ze_loader], [zesInit], [AC_DEFINE(HWLOC_HAVE_ZESINIT, 1, [Define to 1 if zesInit is available])])
AC_CHECK_LIB([ze_loader], [zeDevicePciGetPropertiesExt], [AC_DEFINE(HWLOC_HAVE_ZEDEVICEPCIGETPROPERTIESEXT, 1, [Define to 1 if zeDevicePciGetPropertiesExt is available])])
], [hwloc_levelzero_happy=no])
], [hwloc_levelzero_happy=no])
Expand Down
2 changes: 2 additions & 0 deletions doc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,9 @@ man3_gpu_DATA = \
$(DOX_MAN_DIR)/man3/hwloc_rsmi_get_device_osdev_by_index.3 \
$(DOX_MAN_DIR)/man3/hwlocality_levelzero.3 \
$(DOX_MAN_DIR)/man3/hwloc_levelzero_get_device_cpuset.3 \
$(DOX_MAN_DIR)/man3/hwloc_levelzero_get_sysman_device_cpuset.3 \
$(DOX_MAN_DIR)/man3/hwloc_levelzero_get_device_osdev.3 \
$(DOX_MAN_DIR)/man3/hwloc_levelzero_get_sysman_device_osdev.3 \
$(DOX_MAN_DIR)/man3/hwlocality_gl.3 \
$(DOX_MAN_DIR)/man3/hwloc_gl_get_display_osdev_by_port_device.3 \
$(DOX_MAN_DIR)/man3/hwloc_gl_get_display_osdev_by_name.3 \
Expand Down
1 change: 1 addition & 0 deletions doc/hwloc.doxy
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ The hwloc core may also benefit from the following development packages:
<li>the oneAPI Level Zero library.
The relevant development package is usually <tt>level-zero-dev</tt>
or <tt>level-zero-devel</tt>.
The implementation must be recent enough to support <tt>zesDriverGetDeviceByUuidExp()</tt>
</li>
<li>libxml2 for full XML import/export support (otherwise, the
internal minimalistic parser will only be able to import
Expand Down
Loading