Skip to content
Snippets Groups Projects
Verified Commit 43e6fbeb authored by baptiste.coudray's avatar baptiste.coudray
Browse files

Changed debug display

parent 721368c1
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,8 @@ void init_chunk_elems(chunk_info_t *ci) {
}
}
void compute_next_chunk_elems(struct dispatch_context *dc, struct futhark_context *fc, chunk_info_t *ci) {
void compute_next_chunk_elems(struct dispatch_context *dc, struct futhark_context *fc, chunk_info_t *ci, int n_meas,
int n_iter) {
envelope_t *outer_envelope = get_outer_envelope(dc, fc, 1);
double start0 = MPI_Wtime();
......@@ -36,19 +37,19 @@ void compute_next_chunk_elems(struct dispatch_context *dc, struct futhark_contex
futhark_context_sync(fc);
double finish0 = MPI_Wtime();
printf("0. nce -> %f\n", finish0 - start0);
printf("%d / %d / oe-fce / %f\n", n_meas, n_iter, finish0 - start0);
double start1 = MPI_Wtime();
futhark_entry_next_chunk_elems(fc, &fut_next_chunk_elems, fut_chunk_elems, fut_outer_envelope);
futhark_context_sync(fc);
double finish1 = MPI_Wtime();
printf("1. nce -> %f\n", finish1 - start1);
printf("%d / %d / entry_nce / %f\n", n_meas, n_iter, finish1 - start1);
double start2 = MPI_Wtime();
futhark_values_i8_1d(fc, fut_next_chunk_elems, ci->data);
futhark_context_sync(fc);
double finish2 = MPI_Wtime();
printf("2. values_i8 -> %f\n", finish2 - start2);
printf("%d / %d / values / %f\n", n_meas, n_iter, finish2 - start2);
futhark_free_i8_1d(fc, fut_next_chunk_elems);
futhark_free_i8_1d(fc, fut_chunk_elems);
......@@ -89,7 +90,7 @@ int main(int argc, char *argv[]) {
for (int i = 0; i < N_MEASURES; ++i) {
double start = MPI_Wtime();
for (int j = 0; j < N_ITERATIONS; ++j) {
compute_next_chunk_elems(disp_context, fut_context, &ci);
compute_next_chunk_elems(disp_context, fut_context, &ci, i, j);
}
double finish = MPI_Wtime();
if (my_rank == ROOT_RANK) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment