File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 15
15
#include <fcntl.h>
16
16
#include <assert.h>
17
17
18
+ #include "private/debug.h" /* for HWLOC_BUILD_ASSERT() */
18
19
#include "misc.h"
19
20
#include "hwloc-calc.h"
20
21
@@ -625,6 +626,14 @@ main (int argc, char *argv[])
625
626
626
627
} else if (mode == HWLOC_INFO_MODE_SUPPORT ) {
627
628
const struct hwloc_topology_support * support = hwloc_topology_get_support (topology );
629
+
630
+ #ifdef HWLOC_DEBUG
631
+ HWLOC_BUILD_ASSERT (sizeof (struct hwloc_topology_support ) == 3 * sizeof (void * ));
632
+ HWLOC_BUILD_ASSERT (sizeof (struct hwloc_topology_discovery_support ) == 5 );
633
+ HWLOC_BUILD_ASSERT (sizeof (struct hwloc_topology_cpubind_support ) == 11 );
634
+ HWLOC_BUILD_ASSERT (sizeof (struct hwloc_topology_membind_support ) == 15 );
635
+ #endif
636
+
628
637
#define DO (x ,y ) printf(#x ":" #y " = %u\n", (unsigned char) support->x->y);
629
638
DO (discovery , pu );
630
639
DO (discovery , disallowed_pu );
You can’t perform that action at this time.
0 commit comments