Explorar o código

Add sanity checks

Cédric Augonnet %!s(int64=14) %!d(string=hai) anos
pai
achega
2f245fe25b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      mpi/starpu_mpi.c

+ 3 - 0
mpi/starpu_mpi.c

@@ -593,6 +593,9 @@ static void *progress_thread_func(void *arg __attribute__((unused)))
 		}
 	}
 
+	STARPU_ASSERT(starpu_mpi_req_list_empty(detached_requests));
+	STARPU_ASSERT(starpu_mpi_req_list_empty(new_requests));
+
 	PTHREAD_MUTEX_UNLOCK(&mutex);
 
 	return NULL;