summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2020-05-31 22:42:30 -0400
committerMahmoud <[email protected]>2020-05-31 22:42:30 -0400
commitb53dcfc7b079a06f26b25cedcc09c4843ef1a6b9 (patch)
treef7bf358bec201f897d5130b5276220d68fadd36e /src
parentfec6ce76ca145fa493f902f491a968305fb1c254 (diff)
adding the virtual method back to gpgpu-sim class
Diffstat (limited to 'src')
-rw-r--r--src/abstract_hardware_model.h2
-rw-r--r--src/gpgpu-sim/gpu-sim.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
index b22b5c4..45e7843 100644
--- a/src/abstract_hardware_model.h
+++ b/src/abstract_hardware_model.h
@@ -633,6 +633,8 @@ class gpgpu_t {
return m_NameToTextureInfo;
}
+ virtual ~gpgpu_t() {}
+
protected:
const gpgpu_functional_sim_config &m_function_model_config;
FILE *ptx_inst_debug_file;
diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h
index f9b3a0d..2e6820d 100644
--- a/src/gpgpu-sim/gpu-sim.h
+++ b/src/gpgpu-sim/gpu-sim.h
@@ -636,6 +636,7 @@ class gpgpu_sim : public gpgpu_t {
// into a string for stat printout
void clear_executed_kernel_info(); //< clear the kernel information after
// stat printout
+ virtual void createSIMTCluster() = 0;
public:
unsigned long long gpu_sim_insn;