Explorar o código

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

Cédric Augonnet %!s(int64=15) %!d(string=hai) anos
pai
achega
869320b7a2
Modificáronse 1 ficheiros con 3 adicións e 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 */