diff options
| author | Mahmoud <[email protected]> | 2018-10-11 12:59:39 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2018-10-11 12:59:39 -0400 |
| commit | beeafb66d2e2bb441ab1eacade75322a72961be0 (patch) | |
| tree | 04e71c63714464d17105f8ae2563a99365d821f8 /src/gpgpu-sim/shader.h | |
| parent | a6b9171a158d29d5d1ad415d087f483feb1af965 (diff) | |
| parent | 8193d93d0e154206c21ef9da3f2214e2f8409dce (diff) | |
Merge branch 'dev-purdue-integration' of https://github.rcac.purdue.edu/abdallm/gpgpu-sim_distribution into dev-purdue-integration
Diffstat (limited to 'src/gpgpu-sim/shader.h')
| -rw-r--r-- | src/gpgpu-sim/shader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h index 92b4159..fc8fe78 100644 --- a/src/gpgpu-sim/shader.h +++ b/src/gpgpu-sim/shader.h @@ -1693,6 +1693,7 @@ public: // accessors virtual bool warp_waiting_at_barrier( unsigned warp_id ) const; void get_pdom_stack_top_info( unsigned tid, unsigned *pc, unsigned *rpc ) const; + float get_current_occupancy( unsigned long long & active, unsigned long long & total ) const; // used by pipeline timing model components: // modifiers @@ -1899,6 +1900,7 @@ public: std::vector<register_set> m_pipeline_reg; Scoreboard *m_scoreboard; opndcoll_rfu_t m_operand_collector; + int m_active_warps; //schedule std::vector<scheduler_unit*> schedulers; @@ -1988,6 +1990,7 @@ public: void get_L1T_sub_stats(struct cache_sub_stats &css) const; void get_icnt_stats(long &n_simt_to_mem, long &n_mem_to_simt) const; + float get_current_occupancy( unsigned long long& active, unsigned long long & total ) const; private: unsigned m_cluster_id; |
