diff options
| author | Mahmoud <[email protected]> | 2020-05-27 18:52:01 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2020-05-27 18:52:01 -0400 |
| commit | ede0540e798bac59f65111c8d48661f042412aa8 (patch) | |
| tree | b3a096b17ba60881f92831de6038bf66b161589e /src/gpgpu-sim/gpu-sim.h | |
| parent | 7ebe47ac5d1f0255527a27a9bb7cd3c29fa9f6e3 (diff) | |
splitting trace-driven from gpgpu-sim - part 2
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.h')
| -rw-r--r-- | src/gpgpu-sim/gpu-sim.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h index 53f6ead..e083d33 100644 --- a/src/gpgpu-sim/gpu-sim.h +++ b/src/gpgpu-sim/gpu-sim.h @@ -370,9 +370,6 @@ class gpgpu_sim_config : public power_config, return runtime_pending_launch_count_limit; } - bool is_trace_driven_mode() const { return trace_driven_mode; } - bool is_skip_first_kernel() const { return trace_skip_first_kernel; } - char *get_traces_filename() const { return g_traces_filename; } bool flush_l1() const { return gpgpu_flush_l1_cache; } private: @@ -427,11 +424,6 @@ class gpgpu_sim_config : public power_config, unsigned int gpgpu_compute_capability_minor; unsigned long long liveness_message_freq; - // trace driven mode options - bool trace_driven_mode; - bool trace_skip_first_kernel; - char *g_traces_filename; - friend class gpgpu_sim; }; @@ -588,8 +580,8 @@ class gpgpu_sim : public gpgpu_t { void gpgpu_debug(); + protected: ///// data ///// - class simt_core_cluster **m_cluster; class memory_partition_unit **m_memory_partition_unit; class memory_sub_partition **m_memory_sub_partition; @@ -645,6 +637,9 @@ class gpgpu_sim : public gpgpu_t { void clear_executed_kernel_info(); //< clear the kernel information after // stat printout + virtual void createSIMTCluster() = 0; + void callCreateSIMTCluster(); + public: unsigned long long gpu_sim_insn; unsigned long long gpu_tot_sim_insn; @@ -692,4 +687,14 @@ class gpgpu_sim : public gpgpu_t { } }; +class exec_gpgpu_sim : public gpgpu_sim { + public: + exec_gpgpu_sim(const gpgpu_sim_config &config, gpgpu_context *ctx) + : gpgpu_sim(config, ctx) { + createSIMTCluster(); + } + + virtual void createSIMTCluster(); +}; + #endif |
