static uint8_t dummy_bank3[8192] USED SECTION(".data_bank3");
static block_t *block = (void*)0x2000;
+/* timer values */
+times_t timers = {0};
+
/* barrier structures */
volatile e_barrier_t barriers[CORES];
e_barrier_t *tgt_bars[CORES];
#define READ_TIMER(X) \
do { \
- times[X] = E_CTIMER_MAX - e_ctimer_stop(E_CTIMER_0); \
+ timers[X] = E_CTIMER_MAX - e_ctimer_stop(E_CTIMER_0); \
e_ctimer_set(E_CTIMER_0, E_CTIMER_MAX); \
e_ctimer_start(E_CTIMER_0, E_CTIMER_CLK); \
} while(0);
int main()
{
const FLOAT omega = 1.0;
- unsigned times[TIMERS] = {0};
/* compile-time checks */
BUILD_BUG(NODES * sizeof(node_t) > 24 * 1024);
READ_TIMER(3);
/* collide and stream the bulk */
- collide_stream_bulk(*block, omega);
+ bulk(*block, omega);
READ_TIMER(4);
/* stream the boundaries: top, bottom */
for(int x = 0; x < CORES_X; x++) {
fprintf(file, "[%d,%d]: ", x, y);
for(int t = 0; t < TIMERS; t++) {
- fprintf(file, "%8d ", times[t][y][x]);
+ fprintf(file, "%8d ", times[y][x][t]);
}
fprintf(file, "\n");
}