summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.h
diff options
context:
space:
mode:
authorAyub Gubran <[email protected]>2012-01-09 13:17:27 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:02 -0700
commitc8f254ab524238b93322546e4fd898a26cf0f42d (patch)
tree26aac77db77743ed848d5ac485aa2fac147f0979 /src/gpgpu-sim/gpu-sim.h
parent167c866742713f32807dd10e3ebe796ea23e9645 (diff)
Integrating the pure functional simulation
Merging //depot/gpgpu_sim_research/fermi_ayoub/distribution/src/gpgpu-sim/gpu-sim.cc //depot/gpgpu_sim_research/fermi_ayoub/distribution/src/gpgpu-sim/gpu-sim.h //depot/gpgpu_sim_research/fermi_ayoub/distribution/src/gpgpu-sim/shader.cc //depot/gpgpu_sim_research/fermi_ayoub/distribution/src/gpgpu-sim/shader.h to //depot/gpgpu_sim_research/fermi/distribution/src/gpgpu-sim/... [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11287]
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.h')
-rw-r--r--src/gpgpu-sim/gpu-sim.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h
index 68bfc5c..ab5e8bc 100644
--- a/src/gpgpu-sim/gpu-sim.h
+++ b/src/gpgpu-sim/gpu-sim.h
@@ -234,6 +234,28 @@ public:
const gpgpu_sim_config &get_config() const { return m_config; }
void gpu_print_stat() const;
void dump_pipeline( int mask, int s, int m ) const;
+
+ //The next three functions added to be used by the functional simulation function
+
+ //! Get shader core configuration
+ /*!
+ * Returning the configuration of the shader core, used by the functional simulation only so far
+ */
+ const struct shader_core_config * getShaderCoreConfig();
+
+
+ //! Get shader core Memory Configuration
+ /*!
+ * Returning the memory configuration of the shader core, used by the functional simulation only so far
+ */
+ const struct memory_config * getMemoryConfig();
+
+
+ //! Get shader core SIMT cluster
+ /*!
+ * Returning the cluster of of the shader core, used by the functional simulation so far
+ */
+ simt_core_cluster * getSIMTCluster();
private:
// clocks
@@ -287,7 +309,7 @@ public:
unsigned long long gpu_sim_insn;
unsigned long long gpu_tot_sim_insn;
unsigned long long gpu_sim_insn_last_update;
- unsigned gpu_sim_insn_last_update_sid;
+ unsigned gpu_sim_insn_last_update_sid;
};
#endif