summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.h
diff options
context:
space:
mode:
authortgrogers <[email protected]>2018-10-09 09:55:54 -0400
committertgrogers <[email protected]>2018-10-09 09:55:54 -0400
commita43799f779a2cf23728659733649506a2d5420df (patch)
tree7d0b410fbf30ee0fad38a9be824f9f9d5e8bb5eb /src/gpgpu-sim/shader.h
parent2522f06a47ab854ade2bdada3eaff63c0df36bf4 (diff)
Adding in an occupancy metric to match the nvprof metric
Diffstat (limited to 'src/gpgpu-sim/shader.h')
-rw-r--r--src/gpgpu-sim/shader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index e07096e..f7b13e2 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -1691,6 +1691,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
@@ -1897,6 +1898,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;
@@ -1986,6 +1988,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;