浏览代码

s/STARPU_USE_CPUS/STARPU_USE_CPU/g

Nathalie Furmento 15 年之前
父节点
当前提交
bd8bc3f2c6
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      configure.ac
  2. 1 1
      src/core/topology.c
  3. 1 1
      src/core/workers.c

+ 1 - 1
configure.ac

@@ -131,7 +131,7 @@ AC_SUBST(STARPU_USE_CPU, $enable_cpu)
 AM_CONDITIONAL(STARPU_USE_CPU, test x$enable_cpu = xyes)
 
 if test x$enable_cpu = xyes; then
-	AC_DEFINE(STARPU_USE_CPUS, [1], [CPU driver is activated])
+	AC_DEFINE(STARPU_USE_CPU, [1], [CPU driver is activated])
 
 	# This value is set quite randomly, but StarPU should not take more
 	# core than there are in the system

+ 1 - 1
src/core/topology.c

@@ -258,7 +258,7 @@ static int _starpu_init_machine_config(struct machine_config_s *config,
 
 /* we put the CPU section after the accelerator : in case there was an
  * accelerator found, we devote one cpu */
-#ifdef STARPU_USE_CPUS
+#ifdef STARPU_USE_CPU
 	if (user_conf && (user_conf->ncpus != -1)) {
 		explicitval = user_conf->ncpus;
 	}

+ 1 - 1
src/core/workers.c

@@ -126,7 +126,7 @@ static void _starpu_init_workers(struct machine_config_s *config)
 		_starpu_init_worker_queue(workerarg);
 
 		switch (workerarg->arch) {
-#ifdef STARPU_USE_CPUS
+#ifdef STARPU_USE_CPU
 			case STARPU_CPU_WORKER:
 				workerarg->set = NULL;
 				workerarg->worker_is_initialized = 0;