Explorar o código

Make pause_depth assert more explicit

Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
8321e6aa3f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/workers.c

+ 1 - 1
src/core/workers.c

@@ -1882,7 +1882,7 @@ void starpu_shutdown(void)
 	STARPU_PTHREAD_MUTEX_UNLOCK(&init_mutex);
 
 	/* If the workers are frozen, no progress can be made. */
-	STARPU_ASSERT(_starpu_config.pause_depth <= 0);
+	STARPU_ASSERT_MSG(_starpu_config.pause_depth <= 0, "Did you forget to call starpu_resume before starpu_shutdown?");
 
 	starpu_task_wait_for_no_ready();