diff options
| author | Mahmoud <[email protected]> | 2019-08-30 18:46:42 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-08-30 18:46:42 -0400 |
| commit | 41da287aced4587c6005725ac4ca9b9809c2e08f (patch) | |
| tree | 46cf9ec7739635fbb32098e1f77682ffa46b0da2 /src/cuda-sim/ptx_sim.h | |
| parent | b829a1c498a992f17b4ba7f00c898cfb6deeca03 (diff) | |
| parent | 7d1a848b4807aa1f8ed2bb0478f0a53bf09dcee7 (diff) | |
Merge branch 'dev-private' into dev-purdue-integration-trace
Diffstat (limited to 'src/cuda-sim/ptx_sim.h')
| -rw-r--r-- | src/cuda-sim/ptx_sim.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_sim.h b/src/cuda-sim/ptx_sim.h index d226fbe..c2b3cc8 100644 --- a/src/cuda-sim/ptx_sim.h +++ b/src/cuda-sim/ptx_sim.h @@ -164,7 +164,7 @@ class ptx_thread_info; class ptx_cta_info { public: - ptx_cta_info( unsigned sm_idx ); + ptx_cta_info( unsigned sm_idx, gpgpu_context* ctx ); void add_thread( ptx_thread_info *thd ); unsigned num_threads() const; void check_cta_thread_status_and_reset(); @@ -176,6 +176,8 @@ public: void reset_bar_threads(); private: + // backward pointer + class gpgpu_context* gpgpu_ctx; unsigned m_bar_threads; unsigned long long m_uid; unsigned m_sm_idx; @@ -341,6 +343,7 @@ public: dim3 get_ctaid() const { return m_ctaid; } dim3 get_tid() const { return m_tid; } + dim3 get_ntid() const { return m_ntid; } class gpgpu_sim *get_gpu() { return (gpgpu_sim*)m_gpu;} unsigned get_hw_tid() const { return m_hw_tid;} unsigned get_hw_ctaid() const { return m_hw_ctaid;} |
