Skip to content

Commit a7549c0

Browse files
committed
tests/ports: add some missing -D to enable more ports' code
Signed-off-by: Brice Goglin <[email protected]>
1 parent 93fbfa3 commit a7549c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/hwloc/ports/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ nodist_libhwloc_port_nvml_la_SOURCES = topology-nvml.c
163163
libhwloc_port_nvml_la_SOURCES = \
164164
include/nvml/nvml.h
165165
libhwloc_port_nvml_la_CPPFLAGS = $(common_CPPFLAGS) \
166-
-I$(HWLOC_top_srcdir)/tests/hwloc/ports/include/nvml
166+
-I$(HWLOC_top_srcdir)/tests/hwloc/ports/include/nvml \
167+
-DHAVE_DECL_NVMLDEVICEGETMAXPCIELINKGENERATION=1
167168

168169
nodist_libhwloc_port_rsmi_la_SOURCES = topology-rsmi.c
169170
libhwloc_port_rsmi_la_SOURCES = \
@@ -177,6 +178,7 @@ libhwloc_port_levelzero_la_SOURCES = \
177178
include/levelzero/level_zero/zes_api.h
178179
libhwloc_port_levelzero_la_CPPFLAGS = $(common_CPPFLAGS) \
179180
-I$(HWLOC_top_srcdir)/tests/hwloc/ports/include/levelzero \
181+
-DHWLOC_HAVE_ZEDEVICEPCIGETPROPERTIESEXT=1 \
180182
-DHWLOC_HAVE_ZESINIT=1
181183

182184
nodist_libhwloc_port_gl_la_SOURCES = topology-gl.c

0 commit comments

Comments
 (0)