Sfoglia il codice sorgente

src/core/simgrid.c: also consider STARPU_NCPU

Nathalie Furmento 12 anni fa
parent
commit
6cfda7c6b9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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