File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1388,9 +1388,10 @@ opal_hwloc_locality_t opal_hwloc_base_get_relative_locality(hwloc_topology_t top
1388
1388
*/
1389
1389
char * opal_hwloc_base_find_coprocessors (hwloc_topology_t topo )
1390
1390
{
1391
+ #if HAVE_DECL_HWLOC_OBJ_OSDEV_COPROC
1391
1392
hwloc_obj_t osdev ;
1392
- unsigned i ;
1393
1393
char * * cps = NULL ;
1394
+ #endif
1394
1395
char * cpstring = NULL ;
1395
1396
int depth ;
1396
1397
@@ -1408,6 +1409,7 @@ char* opal_hwloc_base_find_coprocessors(hwloc_topology_t topo)
1408
1409
while (NULL != osdev ) {
1409
1410
if (HWLOC_OBJ_OSDEV_COPROC == osdev -> attr -> osdev .type ) {
1410
1411
/* got one! find and save its serial number */
1412
+ unsigned i ;
1411
1413
for (i = 0 ; i < osdev -> infos_count ; i ++ ) {
1412
1414
if (0 == strncmp (osdev -> infos [i ].name , "MICSerialNumber" , strlen ("MICSerialNumber" ))) {
1413
1415
OPAL_OUTPUT_VERBOSE ((5 , opal_hwloc_base_framework .framework_output ,
You can’t perform that action at this time.
0 commit comments