ソースを参照

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 年 前
コミット
5a5eb593d1
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  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;