ソースを参照

src/core/simgrid.c: also consider STARPU_NCPU

Nathalie Furmento 12 年 前
コミット
6cfda7c6b9
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/core/simgrid.c

+ 1 - 1
src/core/simgrid.c

@@ -63,7 +63,7 @@ int main(int argc, char **argv)
 	/* Create platform file */
 	struct starpu_conf conf;
 	starpu_conf_init(&conf);
-	if (!getenv("STARPU_NCPUS")
+	if ((!getenv("STARPU_NCPUS") && !getenv("STARPU_NCPU"))
 #ifdef STARPU_USE_CUDA
 	 || !getenv("STARPU_NCUDA")
 #endif