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

src/top/starpu_top.c: STARPU_ANY_WORKER is only defined when hypervisor is enabled

Nathalie Furmento лет назад: 13
Родитель
Сommit
6e7bbf227b
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/top/starpu_top.c

+ 3 - 0
src/top/starpu_top.c

@@ -27,6 +27,7 @@
 #include <pthread.h>
 #include <pthread.h>
 #include <common/timing.h>
 #include <common/timing.h>
 #include <common/utils.h>
 #include <common/utils.h>
+#include <common/config.h>
 
 
 extern struct _starpu_top_message_queue*  _starpu_top_mt;
 extern struct _starpu_top_message_queue*  _starpu_top_mt;
 int _starpu_top = 0;
 int _starpu_top = 0;
@@ -105,9 +106,11 @@ static void starpu_top_get_device_type(int id, char* type)
 	case STARPU_GORDON_WORKER:
 	case STARPU_GORDON_WORKER:
 		strncpy(type, "GORDON",9);
 		strncpy(type, "GORDON",9);
 		break;
 		break;
+#ifdef STARPU_USE_SCHED_CTX_HYPERVISOR
 	case STARPU_ANY_WORKER:
 	case STARPU_ANY_WORKER:
 		strncpy(type, "ANY",9);
 		strncpy(type, "ANY",9);
 		break;
 		break;
+#endif
 	}
 	}
 }
 }