diff options
| author | Lucy Liu <[email protected]> | 2020-07-03 13:09:18 -0700 |
|---|---|---|
| committer | Lucy Liu <[email protected]> | 2020-07-03 13:09:18 -0700 |
| commit | 52bee41cfea17f13e93cc1fb812c125fd44bac7b (patch) | |
| tree | 5c1657b9bdae72a3958330e03bb0ea8683a7bea5 /src/cuda-sim/cuda-sim.cc | |
| parent | 708a249f854cedb08b0b5e494f45f2371f0525a6 (diff) | |
add activemask, bfind, vmin, and vmax implementations from Francois
Diffstat (limited to 'src/cuda-sim/cuda-sim.cc')
| -rw-r--r-- | src/cuda-sim/cuda-sim.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc index 75dd3c8..451feb5 100644 --- a/src/cuda-sim/cuda-sim.cc +++ b/src/cuda-sim/cuda-sim.cc @@ -346,11 +346,11 @@ void function_info::ptx_assemble() { printf("GPGPU-Sim PTX: finding reconvergence points for \'%s\'...\n", m_name.c_str() ); create_basic_blocks(); connect_basic_blocks(); - bool modified = false; + bool modified = false; do { find_dominators(); find_idominators(); - modified = connect_break_targets(); + modified = connect_break_targets(); } while (modified == true); if ( g_debug_execution>=50 ) { @@ -1741,7 +1741,7 @@ void ptx_thread_info::ptx_exec_inst(warp_inst_t &inst, unsigned lane_id) { } else { const ptx_instruction *pI_saved = pI; ptx_instruction *pJ = NULL; - if (pI->get_opcode() == VOTE_OP) { + if( pI->get_opcode() == VOTE_OP || pI->get_opcode() == ACTIVEMASK_OP ) { pJ = new ptx_instruction(*pI); *((warp_inst_t *)pJ) = inst; // copy active mask information pI = pJ; |
