Skip to content

Commit

Permalink
Only do fenced loads from tile 0
Browse files Browse the repository at this point in the history
  • Loading branch information
vb000 committed Jul 31, 2020
1 parent 04b719f commit beac2b2
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,13 @@ int kernel_dram_latency(int dummy) {
load_vcache_index(VCACHE_NUM_BLOCKS, 0);

bsg_cuda_print_stat_kernel_start();
size_t offset = VCACHE_NUM_BLOCKS + 1;
// Issue loads to 32 blocks in the opened page
for(size_t i = offset; i < offset + 32; ++i) {
load_vcache_index(i, 0);
bsg_fence();
if(__bsg_id == 0) {
size_t offset = VCACHE_NUM_BLOCKS + 1;
// Issue loads to 32 blocks in the opened page
for(size_t i = offset; i < offset + 32; ++i) {
load_vcache_index(i, 0);
bsg_fence();
}
}
bsg_cuda_print_stat_kernel_end();

Expand Down

0 comments on commit beac2b2

Please sign in to comment.