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 Mar 31, 2022
1 parent b762fad commit e8acb1a
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 e8acb1a

Please sign in to comment.