Browse Source

fix include MIC header when MIC is not activated

Corentin Salingue 8 years ago
parent
commit
24e869ec65
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/drivers/mic/driver_mic_common.h

+ 2 - 3
src/drivers/mic/driver_mic_common.h

@@ -18,13 +18,12 @@
 #ifndef __DRIVER_MIC_COMMON_H__
 #ifndef __DRIVER_MIC_COMMON_H__
 #define __DRIVER_MIC_COMMON_H__
 #define __DRIVER_MIC_COMMON_H__
 
 
-
-#include <source/COIProcess_source.h>
 #include <common/config.h>
 #include <common/config.h>
 
 
-
 #ifdef STARPU_USE_MIC
 #ifdef STARPU_USE_MIC
 
 
+#include <source/COIProcess_source.h>
+
 #define STARPU_TO_MIC_ID(id) ((id) + 1)
 #define STARPU_TO_MIC_ID(id) ((id) + 1)
 
 
 /* TODO: rather allocate ports on the host and pass them as parameters to the device process */
 /* TODO: rather allocate ports on the host and pass them as parameters to the device process */