Exemplo n.º 1
0
int main (int argc, char ** argv) {
    printf("Call Init\n");
    hclib_launch(entrypoint, NULL);
    printf("Check results: ");
    assert_done(0, NB_ASYNC);
    printf("OK\n");
    return 0;
}
Exemplo n.º 2
0
int main (int argc, char *argv[]) {
  /**** Initialising ****/
main_entrypoint_ctx *new_ctx = (main_entrypoint_ctx *)malloc(sizeof(main_entrypoint_ctx));
new_ctx->argc = argc;
new_ctx->argv = argv;
hclib_launch(main_entrypoint, new_ctx);

} 
Exemplo n.º 3
0
void find_queens (int size)
{
main_entrypoint_ctx *new_ctx = (main_entrypoint_ctx *)malloc(sizeof(main_entrypoint_ctx));
new_ctx->size = size;
const char *deps[] = { "system" };
hclib_launch(main_entrypoint, new_ctx, deps, 1);

} 
Exemplo n.º 4
0
void fib0 (int n)
{
main_entrypoint_ctx *new_ctx = (main_entrypoint_ctx *)malloc(sizeof(main_entrypoint_ctx));
new_ctx->n = n;
const char *deps[] = { "system" };
hclib_launch(main_entrypoint, new_ctx, deps, 1);

    bots_message("Fibonacci result for %d is %lld\n",n,par_res);
} 
Exemplo n.º 5
0
int main (int argc, char ** argv) {
    printf("Call Init\n");
    char const *deps[] = { "system" };
    hclib_launch(entrypoint, NULL, deps, 1);
    printf("Check results: ");
    assert_done(0, NB_ASYNC);
    printf("OK\n");
    return 0;
}
Exemplo n.º 6
0
int main (int argc, char ** argv) {
    printf("Call Init\n");
    int *ran=(int *)malloc(H1*H2*sizeof(int));
    hclib_launch(entrypoint, ran);
    printf("Check results: ");
    int i = 0;
    while(i < H1*H2) {
        assert(ran[i] == i);
        i++;
    }
    printf("OK\n");
    return 0;
}
Exemplo n.º 7
0
int main(int argc, char ** argv) {
    hclib_launch(entrypoint, NULL);
    printf("Exiting...\n");
    return 0;
}
Exemplo n.º 8
0
void shmem_workers_init(void* entrypoint, void * arg) {
  assert(arg==NULL && "temporarily we are not allowing passing argument to the entrypoint function");
  hclib_launch(temporary_wrapper, entrypoint);
}
Exemplo n.º 9
0
int main(int argc, char ** argv) {
    char const *deps[] = { "system" };
    hclib_launch(entrypoint, NULL, deps, 1);
    printf("Exiting...\n");
    return 0;
}