diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-03 10:43:29 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-03 10:43:29 -0400 |
| commit | 80067b31e313b40cfd9f88b84593101706567547 (patch) | |
| tree | 739f29cbdf05e3b542fd070c2dd780e47d2c34ea /src/gpgpu-sim/gpu-sim.h | |
| parent | 71eaa4e7b4aba49efef39391f3e1bb3a7e4e1529 (diff) | |
Add backward pointer to gpgpu_sim
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.h')
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h index 5ea5765..b1d2e45 100644 --- a/src/gpgpu-sim/gpu-sim.h +++ b/src/gpgpu-sim/gpu-sim.h @@ -416,10 +416,11 @@ struct occupancy_stats { } }; +class gpgpu_context; class gpgpu_sim : public gpgpu_t { public: - gpgpu_sim( const gpgpu_sim_config &config ); + gpgpu_sim( const gpgpu_sim_config &config, gpgpu_context* ctx ); void set_prop( struct cudaDeviceProp *prop ); @@ -505,6 +506,7 @@ private: void gpgpu_debug(); ///// data ///// + class gpgpu_context* gpgpu_ctx; class simt_core_cluster **m_cluster; class memory_partition_unit **m_memory_partition_unit; |
