From fd3c208f3c51c5520dcd7150d8a521a61577a9d5 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Wed, 6 Aug 2014 16:57:40 -0800 Subject: Support for named bariers + bar.red + bar.arrive instructions [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 18452] --- src/cuda-sim/ptx_ir.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cuda-sim/ptx_ir.h') diff --git a/src/cuda-sim/ptx_ir.h b/src/cuda-sim/ptx_ir.h index 5efa3a8..1dd851a 100644 --- a/src/cuda-sim/ptx_ir.h +++ b/src/cuda-sim/ptx_ir.h @@ -992,6 +992,8 @@ public: unsigned rounding_mode() const { return m_rounding_mode;} unsigned saturation_mode() const { return m_saturation_mode;} unsigned dimension() const { return m_geom_spec;} + unsigned barrier_op() const {return m_barrier_op;} + unsigned reduction_op() const {return m_reduction_op;} enum vote_mode_t { vote_any, vote_all, vote_uni, vote_ballot }; enum vote_mode_t vote_mode() const { return m_vote_mode; } @@ -1021,8 +1023,10 @@ public: return false; } + private: void set_opcode_and_latency(); + void set_bar_type(); void set_fp_or_int_archop(); void set_mul_div_or_other_archop(); @@ -1054,6 +1058,8 @@ private: unsigned m_rounding_mode; unsigned m_compare_op; unsigned m_saturation_mode; + unsigned m_barrier_op; + unsigned m_reduction_op; std::list m_scalar_type; memory_space_t m_space_spec; -- cgit v1.3