__attribute__((hc_grid_launch)) void kernel1(grid_launch_parm lp, int * data1, char c) { int i = hc_get_workitem_id(0) + hc_get_group_id(0)*lp.group_dim.x; data1[i] = (int)c; }
__attribute__((hc_grid_launch)) void kernel1(grid_launch_parm lp, Foo x, Bar *y) { int i = hc_get_workitem_id(0) + hc_get_group_id(0)*lp.group_dim.x; y[i].x = i + x.getY(); }