From 8da09b0c61d6e222f63ea83bc864ba8b6439e995 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Wed, 15 Nov 2023 11:18:49 +0100
Subject: [PATCH] poinv: make sure eevrything is asynchronous when changing the
 distribution on the fly

---
 compute/zpoinv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compute/zpoinv.c b/compute/zpoinv.c
index 02f8bd8df..d227cf79f 100644
--- a/compute/zpoinv.c
+++ b/compute/zpoinv.c
@@ -320,13 +320,13 @@ int CHAMELEON_zpoinv_Tile_Async( cham_uplo_t uplo, CHAM_desc_t *A,
     chameleon_pzpotrf( uplo, A, sequence, request );
 
     if ( change_distribution_for_trtri ) {
-        CHAMELEON_Desc_Change_Distribution( uplo, A, chameleon_getrankof_custom, trtri_custom_get_rankof_arg );
+        CHAMELEON_Desc_Change_Distribution_Async( uplo, A, chameleon_getrankof_custom, trtri_custom_get_rankof_arg, sequence );
     }
 
     chameleon_pztrtri( uplo, ChamNonUnit, A, sequence, request );
 
     if ( change_distribution_for_trtri ) {
-        CHAMELEON_Desc_Change_Distribution( uplo, A, original_get_rankof, original_get_rankof_arg );
+        CHAMELEON_Desc_Change_Distribution_Async( uplo, A, original_get_rankof, original_get_rankof_arg, sequence );
     }
 
     chameleon_pzlauum( uplo, A, sequence, request );
-- 
GitLab