summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/l2cache.h
diff options
context:
space:
mode:
authorAkshay Jain <[email protected]>2018-03-22 04:20:13 -0400
committerAkshay Jain <[email protected]>2018-03-22 04:20:13 -0400
commit777ab7fd6761a6250bc8e4f37994125a3f8d331b (patch)
treebdd53057d454ba5b84d951e2444b71ee5141a93d /src/gpgpu-sim/l2cache.h
parent2d8d4455aa710914e87c5611cbb71f9330cdbc73 (diff)
Change 252 by jain156@akshayj-lt1 on 2017/05/29 10:51:32
Checking in the data footprint stats as reported in the micro paper. The implementation uses gpgpu pointer, due to which I don't feel fine pushing to mainline. May be I can do the stats check and increment in l2cache.cc through a public function to avoid exposing gpgpu pointer to public
Diffstat (limited to 'src/gpgpu-sim/l2cache.h')
-rw-r--r--src/gpgpu-sim/l2cache.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpgpu-sim/l2cache.h b/src/gpgpu-sim/l2cache.h
index 2d13918..6aa7505 100644
--- a/src/gpgpu-sim/l2cache.h
+++ b/src/gpgpu-sim/l2cache.h
@@ -58,7 +58,7 @@ private:
class memory_partition_unit
{
public:
- memory_partition_unit( unsigned partition_id, const struct memory_config *config, class memory_stats_t *stats );
+ memory_partition_unit( unsigned partition_id, const struct memory_config *config, class memory_stats_t *stats , class gpgpu_sim *gpu);
~memory_partition_unit();
bool busy() const;
@@ -93,6 +93,8 @@ public:
unsigned get_mpid() const { return m_id; }
+ gpgpu_sim *m_gpu;
+
private:
unsigned m_id;
@@ -145,7 +147,7 @@ private:
class memory_sub_partition
{
public:
- memory_sub_partition( unsigned sub_partition_id, const struct memory_config *config, class memory_stats_t *stats );
+ memory_sub_partition( unsigned sub_partition_id, const struct memory_config *config, class memory_stats_t *stats, class gpgpu_sim *gpu);
~memory_sub_partition();
unsigned get_id() const { return m_id; }
@@ -185,6 +187,8 @@ public:
m_memcpy_cycle_offset += 1;
}
+ gpgpu_sim *m_gpu;
+
private:
// data
unsigned m_id; //< the global sub partition ID