소스 검색

Fix CPU cap

Samuel Thibault 13 년 전
부모
커밋
0767b12d75
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/topology.c

+ 1 - 1
src/core/topology.c

@@ -486,7 +486,7 @@ static int _starpu_init_machine_config(struct _starpu_machine_config *config,
 		}
 		else
 		{
-			if (topology->ncpus > STARPU_MAXCPUS)
+			if (ncpu > STARPU_MAXCPUS)
 			{
 				fprintf(stderr,
 					"# Warning: %d CPU devices requested. Only %d enabled. Use configure option --enable-maxcpus=xxx to update the maximum value of supported CPU devices.\n",