Browse Source

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

Nathalie Furmento 13 years ago
parent
commit
6e7bbf227b
1 changed files with 3 additions and 0 deletions
  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
 	}
 	}
 }
 }