diff --git a/src/support/hwloc.cpp b/src/support/hwloc.cpp index 2ffe6d841ba366bf1e3060cdb9867a653aac2c20..b503bb20258a8f539556c00f89f67ca0bd90e801 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 );