Prechádzať zdrojové kódy

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

Cédric Augonnet 15 rokov pred
rodič
commit
869320b7a2
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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 */