From 75fccc05b7e516ae80998511f928f5c55b065f02 Mon Sep 17 00:00:00 2001 From: Victor Lopez Date: Mon, 4 Jun 2018 14:51:12 +0200 Subject: [PATCH] Fix hwloc option flag only present in versions 1.x --- src/support/hwloc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/support/hwloc.cpp b/src/support/hwloc.cpp index 2ffe6d841..b503bb202 100644 --- a/src/support/hwloc.cpp +++ b/src/support/hwloc.cpp @@ -70,8 +70,10 @@ void Hwloc::loadHwloc () fatal_cond0( res != 0, "Could not load hwloc topology xml file." ); } +#if (HWLOC_API_VERSION >> 16) == 1 // Enable GPU detection hwloc_topology_set_flags( _hwlocTopology, HWLOC_TOPOLOGY_FLAG_IO_DEVICES ); +#endif // Perform the topology detection. hwloc_topology_load( _hwlocTopology ); -- GitLab