File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ int main(int argc, char *argv[])
184
184
hwloc_topology_set_all_types_filter (topology , HWLOC_TYPE_FILTER_KEEP_ALL );
185
185
hwloc_topology_set_flags (topology , flags );
186
186
ret = hwloc_topology_load (topology );
187
+ if (ret < 0 ) {
188
+ perror ("Couldn't load the topology" );
189
+ return EXIT_FAILURE ;
190
+ }
187
191
if (restrictstring ) {
188
192
hwloc_bitmap_t restrictset = hwloc_bitmap_alloc ();
189
193
hwloc_bitmap_sscanf (restrictset , restrictstring );
@@ -194,8 +198,6 @@ int main(int argc, char *argv[])
194
198
hwloc_bitmap_free (restrictset );
195
199
free (restrictstring );
196
200
}
197
- if (ret < 0 )
198
- return EXIT_FAILURE ;
199
201
depth = hwloc_topology_get_depth (topology );
200
202
201
203
while (argc >= 1 ) {
Original file line number Diff line number Diff line change @@ -430,6 +430,10 @@ int main(int argc, char *argv[])
430
430
if (err ) return EXIT_FAILURE ;
431
431
}
432
432
err = hwloc_topology_load (topology );
433
+ if (err < 0 ) {
434
+ perror ("Couldn't load the topology" );
435
+ return EXIT_FAILURE ;
436
+ }
433
437
if (restrictstring ) {
434
438
hwloc_bitmap_t restrictset = hwloc_bitmap_alloc ();
435
439
hwloc_bitmap_sscanf (restrictset , restrictstring );
You can’t perform that action at this time.
0 commit comments