TP-openmp/BE_OpenMP_2021/pipelining/aux.h
2023-06-22 20:19:48 +02:00

15 lines
301 B
C

struct {
int i, nr, busy;
} typedef resource;
struct {
int i;
long v;
} typedef data;
long usecs ();
void process_data(data *datas, int d, int s, resource *r);
void init_data(data **datas, resource **resources, int ndatas, int nsteps);
void check_result(data *datas, int ndatas, int nsteps);