浏览代码

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",