runtime_context.c 1.9 KB
Newer Older
1
/**
2 3
 *
 * @file runtime_context.c
4
 *
5
 * @copyright 2009-2014 The University of Tennessee and The University of
Mathieu Faverge's avatar
Mathieu Faverge committed
6
 *                      Tennessee Research Foundation. All rights reserved.
7 8
 * @copyright 2012-2017 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
 *                      Univ. Bordeaux. All rights reserved.
9
 *
10
 * @brief Chameleon auxiliary routines
11
 *
12
 * @version 1.0.0
13 14
 * @author Vijay Joshi
 * @author Cedric Castagnede
15
 * @date 2011-10-29
16 17 18
 *
 **/
#include <stdlib.h>
19
#include "chameleon_quark.h"
20 21 22 23

/*******************************************************************************
 *  Create new context
 **/
24
void RUNTIME_context_create( MORSE_context_t *morse )
25 26 27 28 29 30 31 32 33
{
    morse->scheduler = RUNTIME_SCHED_QUARK;
    /* Will require the static initialization if we want to use it in this code */
    return;
}

/*******************************************************************************
 *  Clean the context
 **/
34
void RUNTIME_context_destroy( MORSE_context_t *morse )
35 36 37 38 39 40 41 42
{
    (void)morse;
    return;
}

/*******************************************************************************
 *
 */
43
void RUNTIME_enable( MORSE_enum lever )
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
{
    switch (lever)
    {
        case MORSE_PROFILING_MODE:
            fprintf(stderr, "Profiling is not available with Quark\n");
            break;
        case MORSE_BOUND:
            fprintf(stderr, "Bound computation is not available with Quark\n");
            break;
        default:
            return;
    }
    return;
}

/*******************************************************************************
 *
 **/
62
void RUNTIME_disable( MORSE_enum lever )
63 64 65 66 67 68 69 70 71 72 73 74 75 76
{
    switch (lever)
    {
        case MORSE_PROFILING_MODE:
            fprintf(stderr, "Profiling is not available with Quark\n");
            break;
        case MORSE_BOUND:
            fprintf(stderr, "Bound computation is not available with Quark\n");
            break;
        default:
            return;
    }
    return;
}