Skip to content

Commit

Permalink
Add SAIF commands to jacobi
Browse files Browse the repository at this point in the history
  • Loading branch information
drichmond committed May 4, 2022
1 parent 970001d commit ea41c54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/cuda/test_jacobi/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ extern "C" __attribute__ ((noinline))
int kernel_jacobi(int c0, int c1, float *A0, float * Anext,
const int nx, const int ny, const int nz) {

bsg_nonsynth_saif_start();
bsg_barrier_hw_tile_group_init();
bsg_fence();
bsg_barrier_hw_tile_group_sync();
Expand Down Expand Up @@ -149,6 +150,6 @@ int kernel_jacobi(int c0, int c1, float *A0, float * Anext,
bsg_cuda_print_stat_kernel_end();
bsg_fence();
bsg_barrier_hw_tile_group_sync();

bsg_nonsynth_saif_end();
return 0;
}

0 comments on commit ea41c54

Please sign in to comment.