summaryrefslogtreecommitdiff
path: root/src/cuda-sim/cuda-sim.cc
diff options
context:
space:
mode:
authorsspenst <[email protected]>2016-08-05 10:16:29 -0700
committersspenst <[email protected]>2016-08-05 10:16:29 -0700
commit9a6b68c5b11fbdb239d25afe60e5135bc2afa88d (patch)
tree3da088dd12534a858d414b14c2247aa381145d8d /src/cuda-sim/cuda-sim.cc
parentfeda07a5e0053ef2f2bfa382f5ba9a7a0b6c6bf5 (diff)
bsmad gives the correct output in the small cases I have tried, still need to complete the TODOs noted in bsmad_impl
Diffstat (limited to 'src/cuda-sim/cuda-sim.cc')
-rw-r--r--src/cuda-sim/cuda-sim.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc
index 059fbe2..337463b 100644
--- a/src/cuda-sim/cuda-sim.cc
+++ b/src/cuda-sim/cuda-sim.cc
@@ -1244,16 +1244,6 @@ void ptx_thread_info::ptx_exec_inst( warp_inst_t &inst, unsigned lane_id)
*((warp_inst_t*)pJ) = inst; // copy active mask information
pI = pJ;
}
- /*const ptx_instruction **pA;
- if( pI->get_opcode() == BSMAD_OP ) {
- //pA = (const ptx_instruction**)malloc(get_core()->get_warp_size()*(sizeof(ptx_instruction*)));
- pA = (const ptx_instruction**)malloc(8*(sizeof(ptx_instruction*)));
- for (int i = 0; i < get_core()->get_warp_size() && inst.active(i); i++) {
- //pA[i] = get_core()->get_thread_info()[inst.warp_id() * get_core()->get_warp_size() + i]->func_info()->get_instruction(pc+(i-lane_id)*(pI->inst_size()));
- int tid = inst.warp_id() * get_core()->get_warp_size() + i;
- pA[i] = get_core()->get_thread_info()[tid]->func_info()->get_instruction(pc);
- }
- }*/
switch ( pI->get_opcode() ) {
#define OP_DEF(OP,FUNC,STR,DST,CLASSIFICATION) case OP: FUNC(pI,this); op_classification = CLASSIFICATION; break;
#define OP_W_DEF(OP,FUNC,STR,DST,CLASSIFICATION) case OP: FUNC(pI,get_core(),inst); op_classification = CLASSIFICATION; break;