Explorar o código

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

Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
467570f988
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();