Browse Source

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

Samuel Thibault 4 years ago
parent
commit
467570f988
1 changed files with 1 additions and 0 deletions
  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_wait_wait(&_starpu_mpi_thread_wait);
 		STARPU_PTHREAD_MUTEX_LOCK(&progress_mutex);
 		STARPU_PTHREAD_MUTEX_LOCK(&progress_mutex);
 #endif
 #endif
+		STARPU_VALGRIND_YIELD();
 	}
 	}
 
 
 	_STARPU_MPI_TRACE_POLLING_END();
 	_STARPU_MPI_TRACE_POLLING_END();