1 #define DIMENSION_X 1000 36 int pixelsAveraged = 1;
38 if (y - 1 >= 0 && x - 1 >= 0)
43 if (y - 1 >= 0 && x + 1 < DIMENSION_X)
73 if (x + 1 < DIMENSION_X)
80 checksum += sum / pixelsAveraged;
91 #pragma omp parallel for num_threads(DIMENSION_Y) private(y) 103 printf (
"Result: %d\n", result);
104 if (result == DIMENSION_Y)
106 printf(
"RESULT: PASS\n");
111 printf(
"RESULT: FAIL\n");
void filter(int y, int input[][DIMENSION_X], int *output)
a 3x3 box filter. Filter an entire row of the matrix in one call.
int checksum_expected[DIMENSION_Y]
uint8_t checksum(uint64_t in1, uint64_t in2)
volatile int output[DIM_Y][DIM_X]
int checksum_output[DIMENSION_Y]
int original[DIMENSION_Y][DIMENSION_X]
x
Return the smallest n such that 2^n >= _x.