Sfoglia il codice sorgente

Small hack to avoid side effects from third party libs that also try to bind
threads close the GPUs.

Cédric Augonnet 15 anni fa
parent
commit
869320b7a2
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      src/drivers/cuda/driver_cuda.c

+ 3 - 0
src/drivers/cuda/driver_cuda.c

@@ -182,6 +182,9 @@ void *cuda_worker(void *arg)
 
 	init_context(devid);
 
+	/* one more time to avoid hacks from third party lib :) */
+	bind_thread_on_cpu(args->config, args->bindid);
+
 	args->status = STATUS_UNKNOWN;
 
 	/* get the device's name */