Explorar el Código

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

Cédric Augonnet hace 15 años
padre
commit
869320b7a2
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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 */