/* * Empty kernel with multiple tasklets * */ #include #include #include #include #include #include #include #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; }