8 #define ARRAY_SIZE 6000 9 #define NUMS_OF_ACCEL 6 10 #define OPS_PER_ACCEL ARRAY_SIZE/NUMS_OF_ACCEL 18 int product (
int * inputA,
int * inputB,
int startidx,
int maxidx)
22 for (i = startidx; i < maxidx; i++){
23 result+= inputA[i]*inputB[i];
33 #pragma omp parallel for num_threads(NUMS_OF_ACCEL) private(i) 44 printf (
"Result: %d\n", result);
45 if (result == 60799800) {
46 printf(
"RESULT: PASS\n");
48 printf(
"RESULT: FAIL\n");
int product(int *inputA, int *inputB, int startidx, int maxidx)
int result_array[NUMS_OF_ACCEL]