Sfoglia il codice sorgente

Always reset the local worker key to worker0 for datawizard to get the proper wait queue when using multiple workers in the same driver thread

Samuel Thibault 8 anni fa
parent
commit
5a5eb593d1
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/drivers/cuda/driver_cuda.c

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

@@ -727,6 +727,7 @@ int _starpu_cuda_driver_run_once(struct _starpu_worker_set *worker_set)
 #ifdef STARPU_SIMGRID
 	starpu_pthread_wait_reset(&worker0->wait);
 #endif
+	_starpu_set_local_worker_key(worker0);
 
 	/* First poll for completed jobs */
 	idle_tasks = 0;