Преглед на файлове

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

Cédric Augonnet преди 15 години
родител
ревизия
869320b7a2
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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 */