summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-07-15 18:09:46 -0800
committerTor Aamodt <[email protected]>2010-07-15 18:09:46 -0800
commit69f2911e04ffb1b19eef1fafb8c040af271f656e (patch)
tree231d3b6bdc3a202f7c255bfcf7bf2c36e32cee9e /src/abstract_hardware_model.h
creating branch for adding support for CUDA 3.x and Fermi
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6829]
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
new file mode 100644
index 0000000..39f4b3f
--- /dev/null
+++ b/src/abstract_hardware_model.h
@@ -0,0 +1,12 @@
+#ifndef CORE_T_INCLUDED
+#define CORE_T_INCLUDED
+
+class core_t {
+public:
+ virtual ~core_t() {}
+ virtual void set_at_barrier( unsigned cta_id, unsigned warp_id ) = 0;
+ virtual void warp_exit( unsigned warp_id ) = 0;
+ virtual bool warp_waiting_at_barrier( unsigned warp_id ) = 0;
+};
+
+#endif