Samuel Thibault лет назад: 13
Родитель
Сommit
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",