runtime_context.c 1.57 KB
Newer Older
Mathieu Faverge's avatar
Mathieu Faverge committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/**
 *
 * @copyright (c) 2009-2015 The University of Tennessee and The University
 *                          of Tennessee Research Foundation.
 *                          All rights reserved.
 * @copyright (c) 2012-2015 Inria. All rights reserved.
 * @copyright (c) 2012-2015 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
 *
 **/
#include <stdlib.h>
#include "runtime/parsec/include/morse_parsec.h"

/*******************************************************************************
 *  Create new context
 **/
void RUNTIME_context_create(MORSE_context_t *morse)
{
    /* In case of PaRSEC, this is done in init */
19
    morse->scheduler = RUNTIME_SCHED_PARSEC;
Mathieu Faverge's avatar
Mathieu Faverge committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
    return;
}

/*******************************************************************************
 *  Clean the context
 **/

void RUNTIME_context_destroy(MORSE_context_t *morse)
{
    (void)morse;
    return;
}

/*******************************************************************************
 *
 */
void RUNTIME_enable(MORSE_enum lever)
{
    switch (lever)
    {
        case MORSE_PROFILING_MODE:
            // TODO: check correctly for this
            //dague_profiling_start();
            break;
        default:
            return;
    }
    return;
}

/*******************************************************************************
 *
 **/
void RUNTIME_disable(MORSE_enum lever)
{
    switch (lever)
    {
        case MORSE_PROFILING_MODE:
            // TODO: check correctly for this
            //dague_profiling_stop();
            break;
        default:
            return;
    }
    return;
}