From 62b14f815d554184e50035c977fe1dfc021277d1 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Thu, 25 Jan 2018 15:26:22 +0100
Subject: [PATCH] Disable dataflush in Parsec to avoid freeing a data before
 it's fully used in the sequence

---
 runtime/parsec/control/runtime_descriptor.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/runtime/parsec/control/runtime_descriptor.c b/runtime/parsec/control/runtime_descriptor.c
index d2c7cea9e..8f01af0a5 100644
--- a/runtime/parsec/control/runtime_descriptor.c
+++ b/runtime/parsec/control/runtime_descriptor.c
@@ -332,9 +332,16 @@ void RUNTIME_desc_flush( const MORSE_desc_t     *desc,
 void RUNTIME_data_flush( const MORSE_sequence_t *sequence,
                          const MORSE_desc_t *A, int Am, int An )
 {
-    parsec_taskpool_t* PARSEC_dtd_taskpool = (parsec_taskpool_t *)(sequence->schedopt);
-
-    parsec_dtd_data_flush( PARSEC_dtd_taskpool, RTBLKADDR( A, MORSE_Complex64_t, Am, An ) );
+    /*
+     * For now, we do nothing in this function as in PaRSEC, once the data is
+     * flushed it cannot be reused in the same sequence, when this issue will be
+     * fixed, we will uncomment this function
+     */
+    /* parsec_taskpool_t* PARSEC_dtd_taskpool = (parsec_taskpool_t *)(sequence->schedopt); */
+    /* parsec_dtd_data_flush( PARSEC_dtd_taskpool, RTBLKADDR( A, MORSE_Complex64_t, Am, An ) ); */
+
+    (void)sequence; (void)A; (void)Am; (void)An;
+    return;
 }
 
 /*******************************************************************************
-- 
GitLab