Просмотр исходного кода

fix missing ref to former_process_affinity

Samuel Thibault лет назад: 15
Родитель
Сommit
3a9cbb4c57
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/perfmodel/perfmodel_bus.c

+ 1 - 1
src/core/perfmodel/perfmodel_bus.c

@@ -425,7 +425,7 @@ static void benchmark_all_gpu_devices(void)
 #endif
 #endif
 
 
 	/* FIXME: use hwloc */
 	/* FIXME: use hwloc */
-#ifndef __MINGW32__
+#ifdef __linux__
 	/* Restore the former affinity */
 	/* Restore the former affinity */
 	ret = sched_setaffinity(0, sizeof(former_process_affinity), &former_process_affinity);
 	ret = sched_setaffinity(0, sizeof(former_process_affinity), &former_process_affinity);
 	if (ret)
 	if (ret)