From aa3cb10c91b1d0e5571172fdefa00aa575f26ebe Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Tue, 25 Jun 2013 13:30:10 -0800 Subject: Adding the ability to querry the WARPSZ flag from the ptx script. Also changed some initialization code when cores are created in both the funcational and perfromance simulator review:3001 lgtm:5 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 16506] --- src/cuda-sim/ptx_sim.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 e969e88..9b32e68 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -270,7 +270,7 @@ unsigned ptx_thread_info::get_builtin( int builtin_id, unsigned dim_mod ) if( dim_mod == 2 ) return m_tid.z; abort(); break; - case WARPSZ_REG: feature_not_implemented( "WARP_SZ" ); return 0; + case WARPSZ_REG: return m_core->get_warp_size() ; default: assert(0); } -- cgit v1.3