Bladeren bron

hwloc_obj_attr_snprintf is available since hwloc 1.0 actually

Samuel Thibault 9 jaren geleden
bovenliggende
commit
7ed5469311
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      src/core/detect_combined_workers.c

+ 1 - 1
src/core/detect_combined_workers.c

@@ -112,7 +112,7 @@ static void find_and_assign_combinations(hwloc_obj_t obj, unsigned min, unsigned
 	unsigned i, n, nworkers;
 	unsigned i, n, nworkers;
 	int cpu_workers[STARPU_NMAXWORKERS];
 	int cpu_workers[STARPU_NMAXWORKERS];
 
 
-#if HWLOC_API_VERSION >= 0x10800
+#if HWLOC_API_VERSION >= 0x10000
 	hwloc_obj_attr_snprintf(name, sizeof(name), obj, "#", 0);
 	hwloc_obj_attr_snprintf(name, sizeof(name), obj, "#", 0);
 #else
 #else
 	hwloc_obj_snprintf(name, sizeof(name), _starpu_get_machine_config()->topology.hwtopology, obj, "#", 0);
 	hwloc_obj_snprintf(name, sizeof(name), _starpu_get_machine_config()->topology.hwtopology, obj, "#", 0);