ソースを参照

Fix hardcoded number of MIC devices

Samuel Thibault 9 年 前
コミット
f486b967b1
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      src/core/topology.c

+ 2 - 2
src/core/topology.c

@@ -794,8 +794,8 @@ _starpu_init_mic_config (struct _starpu_machine_config *config,
     }
 
 #ifdef STARPU_USE_MIC
-static COIENGINE handles[2];
-static COIPROCESS process[2];
+static COIENGINE handles[STARPU_MAXMICDEVS];
+static COIPROCESS mic_process[STARPU_MAXMICDEVS];
 #endif
 
 static void