2 #define ARRAY_SIZE 10000 3 #define OPS_PER_ACCEL ARRAY_SIZE/NUM_ACCELS 10 void add (
int accelnum,
int startidx,
int endidx)
14 for (i = startidx; i < endidx; i++)
28 #pragma omp parallel for num_threads(NUM_ACCELS) private(i) 41 printf (
"Result: %d\n", sum);
44 printf(
"RESULT: PASS\n");
48 printf(
"RESULT: FAIL\n");
void add(int accelnum, int startidx, int endidx)