runtime_context.c 2.01 KB
Newer Older
1 2
/**
 *
3 4 5 6
 * @copyright 2009-2014 The University of Tennessee and The University of
 *                      Tennessee Research Foundation.  All rights reserved.
 * @copyright 2012-2017 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
 *                      Univ. Bordeaux. All rights reserved.
7
 *
8
 * @file runtime_context.c
9 10 11 12 13
 *
 *  MORSE auxiliary routines
 *  MORSE is a software package provided by Univ. of Tennessee,
 *  Univ. of California Berkeley and Univ. of Colorado Denver
 *
14
 * @version 1.0.0
15 16
 * @author Vijay Joshi
 * @author Cedric Castagnede
17
 * @date 2011-10-29
18 19 20
 *
 **/
#include <stdlib.h>
21
#include "chameleon_quark.h"
22 23 24 25

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

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

/*******************************************************************************
 *
 */
45
void RUNTIME_enable( MORSE_enum lever )
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
{
    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;
}

/*******************************************************************************
 *
 **/
64
void RUNTIME_disable( MORSE_enum lever )
65 66 67 68 69 70 71 72 73 74 75 76 77 78
{
    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;
}