diff options
| author | Tor Aamodt <[email protected]> | 2012-02-21 15:20:27 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:19:03 -0700 |
| commit | f14d1687d360a9a9007eacec680a4a71cf9bc76b (patch) | |
| tree | 6f42cdf21c279bce929d380bfc8f2a6b17156d72 /src/cuda-sim/ptx_sim.cc | |
| parent | 7092b55e927a46128d279d544ff2a32887e81126 (diff) | |
removing old barrier implementation (no longer used)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11486]
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
| -rw-r--r-- | src/cuda-sim/ptx_sim.cc | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc index f3599f4..8053949 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -50,22 +50,6 @@ void ptx_cta_info::add_thread( ptx_thread_info *thd ) m_threads_in_cta.insert(thd); } -void ptx_cta_info::add_to_barrier( ptx_thread_info *thd ) -{ - m_threads_waiting_at_barrier.insert(thd); -} - -void ptx_cta_info::release_barrier() -{ - assert( m_threads_waiting_at_barrier.size() == m_threads_in_cta.size() ); - m_threads_waiting_at_barrier.clear(); -} - -bool ptx_cta_info::all_at_barrier() const -{ - return(m_threads_waiting_at_barrier.size() == m_threads_in_cta.size()); -} - unsigned ptx_cta_info::num_threads() const { return m_threads_in_cta.size(); @@ -98,7 +82,6 @@ void ptx_cta_info::check_cta_thread_status_and_reset() printf("\n\n"); fail = true; } - assert_barrier_empty(true); if ( fail ) { abort(); } @@ -128,29 +111,6 @@ void ptx_cta_info::check_cta_thread_status_and_reset() m_dangling_pointers.clear(); } -void ptx_cta_info::assert_barrier_empty( bool called_from_delete_threads ) const -{ - if ( !m_threads_waiting_at_barrier.empty() ) { - printf( "\n\n" ); - printf( "Execution error: Some threads at barrier at %s:\n", - (called_from_delete_threads?"CTA re-init":"thread exit") ); - printf( " CTA uid = %Lu (sm_idx = %u)\n", m_uid, m_sm_idx ); - std::set<ptx_thread_info*>::iterator b; - for ( b=m_threads_waiting_at_barrier.begin(); b != m_threads_waiting_at_barrier.end(); ++b ) { - ptx_thread_info *t = *b; - if ( m_dangling_pointers.find(t) != m_dangling_pointers.end() ) { - printf(" <thread deleted>\n"); - } else { - printf(" "); - t->print_insn( t->get_pc(), stdout ); - printf("\n"); - } - } - printf("\n\n"); - abort(); - } -} - void ptx_cta_info::register_thread_exit( ptx_thread_info *thd ) { assert( m_threads_that_have_exited.find(thd) == m_threads_that_have_exited.end() ); |
