diff options
| author | Mahmoud <[email protected]> | 2019-08-30 18:44:02 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-08-30 18:44:02 -0400 |
| commit | 7d1a848b4807aa1f8ed2bb0478f0a53bf09dcee7 (patch) | |
| tree | b9413a262e9281c0adc8d5693966e5447b461c06 /src/gpgpu-sim/gpu-cache.cc | |
| parent | a168a2c7224ea59c9ea7523be1f46893531bdc63 (diff) | |
| parent | 93597743b24b7d7726096d337e6c9c4516cb2273 (diff) | |
Merge branch 'dev-nvidia' into dev-private
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc index d034303..b7d0ac3 100644 --- a/src/gpgpu-sim/gpu-cache.cc +++ b/src/gpgpu-sim/gpu-cache.cc @@ -66,8 +66,13 @@ const char * cache_fail_status_str(enum cache_reservation_fail_reason status) unsigned l1d_cache_config::set_bank(new_addr_type addr) const{ - if(m_cache_type == SECTOR) + //For sector cache, we select one sector per bank (sector interleaving) + //This is what was found in Volta (one sector per bank, sector interleaving) + //otherwise, line interleaving + if(m_cache_type == SECTOR) { + //assert(l1_banks == SECTOR_CHUNCK_SIZE); return (addr >> m_sector_sz_log2) & (l1_banks-1); + } else return (addr >> m_line_sz_log2) & (l1_banks-1); } |
