From 67a311c614237e357c80990feecf424fa61722dd Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Thu, 13 Mar 2025 15:14:46 +0100 Subject: [PATCH] starpu: initialize need_submit with need_exec to siplify the test --- runtime/starpu/include/chameleon_starpu_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/starpu/include/chameleon_starpu_internal.h b/runtime/starpu/include/chameleon_starpu_internal.h index 9beea7b0e..c202955a8 100644 --- a/runtime/starpu/include/chameleon_starpu_internal.h +++ b/runtime/starpu/include/chameleon_starpu_internal.h @@ -347,7 +347,7 @@ starpu_cham_exchange_data_before_execution( const RUNTIME_option_t int An, enum starpu_data_access_mode mode ) { - unsigned need_submit = 0; + unsigned need_submit = params.do_execute; starpu_data_handle_t *ptrtile = chameleon_starpu_data_gethandle( A, Am, An ); /* @@ -369,7 +369,7 @@ starpu_cham_exchange_data_before_execution( const RUNTIME_option_t need_submit = 1; } - if ( !need_submit && !params->do_execute ) { + if ( !need_submit ) { return; } -- GitLab