4 #define BIN_MAX_NUM MAX_NUM/NUM_BINS 8 #define ARRAY_SIZE 36000 9 #define OPS_PER_ACCEL ARRAY_SIZE/NUM_ACCELS 17 int temp[5] = {0, 0, 0, 0, 0};
19 for (i = 0; i < max_idx; i++)
63 #pragma omp parallel for num_threads(NUM_ACCELS) private(i) 86 printf (
"Result: %d\n", main_result);
87 if (main_result == NUM_BINS)
89 printf(
"RESULT: PASS\n");
94 printf(
"RESULT: FAIL\n");
void histogram(int *input, int *output, int max_idx)
int expected_array[NUM_BINS]
volatile int output[DIM_Y][DIM_X]
int output_array[NUM_BINS]
int input_array[ARRAY_SIZE]
int output_array_accel[NUM_BINS *NUM_ACCELS]