Explorar o código

src/core/simgrid.c: also consider STARPU_NCPU

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
6cfda7c6b9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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