summaryrefslogtreecommitdiff
path: root/Microbenchmarks/CPU-DPU/dpu/size.c
blob: 360ab4705e954b6c792cf42f8af88f80adcc4859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Empty kernel with multiple tasklets
*
*/
#include <stdint.h>
#include <stdio.h>
#include <defs.h>
#include <mram.h>
#include <alloc.h>
#include <perfcounter.h>
#include <barrier.h>

#include "../support/common.h"

__host dpu_arguments_t DPU_INPUT_ARGUMENTS;

extern int main_kernel1(void);

int (*kernels[nr_kernels])(void) = {main_kernel1};

int main(void) { 
    // Kernel
    return kernels[DPU_INPUT_ARGUMENTS.kernel](); 
}

// main_kernel1
int main_kernel1() {
#if PRINT
    unsigned int tasklet_id = me();
    printf("tasklet_id = %u\n", tasklet_id);
#endif
#include "nop.inc"
    return 0;
}