summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.h
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2019-08-30 18:43:21 -0400
committerMahmoud <[email protected]>2019-08-30 18:43:21 -0400
commit93597743b24b7d7726096d337e6c9c4516cb2273 (patch)
treea9bca57c102d11edb3a8d878324db5a810caef60 /src/gpgpu-sim/gpu-cache.h
parent2e2b0911f8cc9d172e4602765ce4c20ffb583cf0 (diff)
update the adaptive cache behaviour and make L1 fully assoc in Volta
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
-rw-r--r--src/gpgpu-sim/gpu-cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h
index 90adbb5..dd22886 100644
--- a/src/gpgpu-sim/gpu-cache.h
+++ b/src/gpgpu-sim/gpu-cache.h
@@ -656,6 +656,11 @@ public:
assert( m_valid );
return MAX_DEFAULT_CACHE_SIZE_MULTIBLIER * m_nset * original_m_assoc;
}
+ unsigned get_max_assoc() const
+ {
+ assert( m_valid );
+ return MAX_DEFAULT_CACHE_SIZE_MULTIBLIER * original_m_assoc;
+ }
void print( FILE *fp ) const
{
fprintf( fp, "Size = %d B (%d Set x %d-way x %d byte line)\n",