view src/parallel_execution/origin_cs.c @ 98:d400948dbbab

add Cuda infomation to context
author ikkun
date Mon, 01 Feb 2016 18:03:43 +0900
parents 9e139a340bd1
children
line wrap: on
line source

#include <stdlib.h>
#include "context.h"

__code meta(struct Context* context, enum Code next) {
    goto (context->code[next])(context);
}

__code start_code(struct Context* context) {
    goto meta(context, context->next);
}

__code exit_code(struct Context* context) {
    free(context->code);
    free(context->data);
    free(context->heapStart);
    goto exit(0);
}