소스 검색

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