From 3686303c70d807c0c15140255fb947340885772d Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Mon, 15 Jan 2018 12:59:23 +0100
Subject: [PATCH] Make sure Quark compiles too

---
 runtime/quark/CMakeLists.txt               |  1 -
 runtime/quark/codelets/codelet_dataflush.c | 53 ----------------------
 runtime/quark/control/runtime_descriptor.c | 25 +++++++---
 3 files changed, 19 insertions(+), 60 deletions(-)
 delete mode 100644 runtime/quark/codelets/codelet_dataflush.c

diff --git a/runtime/quark/CMakeLists.txt b/runtime/quark/CMakeLists.txt
index c6412acc4..db92c2a9b 100644
--- a/runtime/quark/CMakeLists.txt
+++ b/runtime/quark/CMakeLists.txt
@@ -86,7 +86,6 @@ set(RUNTIME_COMMON
   control/runtime_descriptor.c
   control/runtime_options.c
   control/runtime_profiling.c
-  codelets/codelet_dataflush.c
   ${RUNTIME_COMMON_GENERATED}
   )
 
diff --git a/runtime/quark/codelets/codelet_dataflush.c b/runtime/quark/codelets/codelet_dataflush.c
deleted file mode 100644
index cbec78c35..000000000
--- a/runtime/quark/codelets/codelet_dataflush.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- *
- * @copyright (c) 2009-2014 The University of Tennessee and The University
- *                          of Tennessee Research Foundation.
- *                          All rights reserved.
- * @copyright (c) 2012-2014 Inria. All rights reserved.
- * @copyright (c) 2012-2014, 2016 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
- *
- **/
-
-/**
- *
- * @file codelet_dataflush.c
- *
- *  MORSE codelets kernel
- *  MORSE is a software package provided by Univ. of Tennessee,
- *  Univ. of California Berkeley and Univ. of Colorado Denver
- *
- * @version 2.5.0
- * @comment This file has been automatically generated
- *          from Plasma 2.5.0 for MORSE 1.0.0
- * @author Mathieu Faverge
- *
- * @date 2014-02-05
- *
- **/
-#include "chameleon_quark.h"
-
-void MORSE_TASK_flush_data( const MORSE_option_t *options,
-                           const MORSE_desc_t *A, int Am, int An )
-{
-    (void)options; (void)A; (void)Am; (void)An;
-
-    /*
-     * This is useful for StarPU and PaRSEC MPI implementation, if it happens in
-     * Quark, it will need to be done carefuly to not break other runtimes.
-     */
-}
-
-void MORSE_TASK_flush_desc( const MORSE_option_t *options,
-                           MORSE_enum uplo, const MORSE_desc_t *A )
-{
-    (void)options; (void)uplo; (void)A;
-
-    /*
-     * This is useful for StarPU and PaRSEC MPI implementation, if it happens in
-     * Quark, it will need to be done carefuly to not break other runtimes.
-     */
-}
-
-void MORSE_TASK_flush_all()
-{
-}
diff --git a/runtime/quark/control/runtime_descriptor.c b/runtime/quark/control/runtime_descriptor.c
index 2b08dd846..d9198f0e5 100644
--- a/runtime/quark/control/runtime_descriptor.c
+++ b/runtime/quark/control/runtime_descriptor.c
@@ -64,18 +64,31 @@ int RUNTIME_desc_release( const MORSE_desc_t *desc )
     return MORSE_SUCCESS;
 }
 
-int RUNTIME_desc_getoncpu( const MORSE_desc_t *desc )
+void
+RUNTIME_desc_flush( const MORSE_desc_t     *desc,
+                    const MORSE_sequence_t *sequence )
 {
     (void)desc;
-    return MORSE_SUCCESS;
+    (void)sequence;
+    return;
 }
 
-int RUNTIME_desc_getoncpu_async( const MORSE_desc_t *desc,
-                                 MORSE_sequence_t   *sequence )
+
+void
+RUNTIME_flush( )
+{
+    return;
+}
+
+void
+RUNTIME_data_flush( const MORSE_sequence_t *sequence,
+                    const MORSE_desc_t *A, int Am, int An )
 {
-    (void)desc;
     (void)sequence;
-    return MORSE_SUCCESS;
+    (void)A;
+    (void)Am;
+    (void)An;
+    return;
 }
 
 void *RUNTIME_desc_getaddr( const MORSE_desc_t *desc, int m, int n )
-- 
GitLab