summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_sim.cc
diff options
context:
space:
mode:
authorgpgpu-sim <[email protected]>2016-07-04 14:49:07 -0700
committerGitHub <[email protected]>2016-07-04 14:49:07 -0700
commitd90b6ad29a7cb24841841f7c54fcb4c2b1e929eb (patch)
treeaab816c03efb97100868528d4381472e5d82168c /src/cuda-sim/ptx_sim.cc
parentaf4eee53ad30bb58c3ee53da71845ac95aa517e0 (diff)
parentf7c57e76c086ce417626f37ffc91097c839c687d (diff)
Merge pull request #26 from sspenst/dev
Additional support for CUDA 7.5
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
-rw-r--r--src/cuda-sim/ptx_sim.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc
index 9b32e68..09844ae 100644
--- a/src/cuda-sim/ptx_sim.cc
+++ b/src/cuda-sim/ptx_sim.cc
@@ -240,7 +240,7 @@ unsigned ptx_thread_info::get_builtin( int builtin_id, unsigned dim_mod )
}
case GRIDID_REG:
return m_gridid;
- case LANEID_REG: feature_not_implemented( "%laneid" ); return 0;
+ case LANEID_REG: return get_hw_tid() % m_core->get_warp_size();
case LANEMASK_EQ_REG: feature_not_implemented( "%lanemask_eq" ); return 0;
case LANEMASK_LE_REG: feature_not_implemented( "%lanemask_le" ); return 0;
case LANEMASK_LT_REG: feature_not_implemented( "%lanemask_lt" ); return 0;