瀏覽代碼

mpi: Make sure that valgrind doesn't get stuck on the MPI thread

Samuel Thibault 4 年之前
父節點
當前提交
467570f988
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mpi/src/mpi/starpu_mpi_mpi.c

+ 1 - 0
mpi/src/mpi/starpu_mpi_mpi.c

@@ -1513,6 +1513,7 @@ static void *_starpu_mpi_progress_thread_func(void *arg)
 		starpu_pthread_wait_wait(&_starpu_mpi_thread_wait);
 		STARPU_PTHREAD_MUTEX_LOCK(&progress_mutex);
 #endif
+		STARPU_VALGRIND_YIELD();
 	}
 
 	_STARPU_MPI_TRACE_POLLING_END();