From 06d6f3bb15f4c1dc56943304696ac83b36413907 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sun, 8 Aug 2010 23:57:43 -0800 Subject: refactor: shader.cc free of extern declarations [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7176] --- src/cuda-sim/ptx_sim.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/cuda-sim/ptx_sim.cc') diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc index 31c8c81..2156bd6 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -64,6 +64,7 @@ #include "ptx_sim.h" #include #include "ptx_ir.h" +#include "../gpgpu-sim/gpu-sim.h" void feature_not_implemented( const char *f ); @@ -249,8 +250,6 @@ const ptx_version &ptx_thread_info::get_ptx_version() const return m_func_info->get_ptx_version(); } -extern unsigned long long gpu_sim_cycle; - void ptx_thread_info::set_done() { assert( !m_at_barrier ); @@ -258,9 +257,6 @@ void ptx_thread_info::set_done() m_cycle_done = gpu_sim_cycle; } -extern unsigned long long gpu_sim_cycle; -extern signed long long gpu_tot_sim_cycle; - unsigned ptx_thread_info::get_builtin( int builtin_id, unsigned dim_mod ) { assert( m_valid ); -- cgit v1.3