File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4291,7 +4291,8 @@ hwloc_topology_load (struct hwloc_topology *topology)
4291
4291
/* Same for memattrs */
4292
4292
hwloc_internal_memattrs_need_refresh (topology );
4293
4293
hwloc_internal_memattrs_refresh (topology );
4294
- hwloc_internal_memattrs_guess_memory_tiers (topology );
4294
+ if (!(topology -> flags & HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS ))
4295
+ hwloc_internal_memattrs_guess_memory_tiers (topology );
4295
4296
4296
4297
topology -> state &= ~HWLOC_TOPOLOGY_STATE_IS_LOADING ;
4297
4298
topology -> state |= HWLOC_TOPOLOGY_STATE_IS_LOADED ;
Original file line number Diff line number Diff line change @@ -2347,9 +2347,10 @@ enum hwloc_topology_flags_e {
2347
2347
*/
2348
2348
HWLOC_TOPOLOGY_FLAG_NO_DISTANCES = (1UL <<7 ),
2349
2349
2350
- /** \brief Ignore memory attributes.
2350
+ /** \brief Ignore memory attributes and tiers .
2351
2351
*
2352
- * Ignore memory attribues from the operating systems (and from XML).
2352
+ * Ignore memory attribues from the operating systems (and from XML)
2353
+ * Hence also do not try to build memory tiers.
2353
2354
*/
2354
2355
HWLOC_TOPOLOGY_FLAG_NO_MEMATTRS = (1UL <<8 ),
2355
2356
You can’t perform that action at this time.
0 commit comments