Explorar o código

Bug fix: do not put CPU workers where there is already an OpenCL worker.

Cédric Augonnet %!s(int64=14) %!d(string=hai) anos
pai
achega
9282290150
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/topology.c

+ 1 - 1
src/core/topology.c

@@ -444,7 +444,7 @@ static int _starpu_init_machine_config(struct starpu_machine_config_s *config,
 	}
 
 	if (explicitval < 0) {
-		unsigned already_busy_cpus = (topology->ngordon_spus?1:0) + topology->ncudagpus;
+		unsigned already_busy_cpus = (topology->ngordon_spus?1:0) + topology->ncudagpus + topology->nopenclgpus;
 		long avail_cpus = topology->nhwcpus - (use_accelerator?already_busy_cpus:0);
 		topology->ncpus = STARPU_MIN(avail_cpus, STARPU_NMAXCPUS);
 	} else {