2 #define ARRAY_SIZE 10000 3 #define OPS_PER_ACCEL ARRAY_SIZE/NUM_ACCELS 11 void add (
int accelnum)
14 int endidx = (accelnum+1) * OPS_PER_ACCEL;
17 for (i=startidx; i<endidx; i++)
25 void add_for(
int start,
int end)
28 #pragma omp parallel for num_threads(NUM_ACCELS) private(i) 29 for (i=start; i < end; i++) {
void add(int accelnum, int startidx, int endidx)