From fd3c208f3c51c5520dcd7150d8a521a61577a9d5 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Wed, 6 Aug 2014 16:57:40 -0800 Subject: Support for named bariers + bar.red + bar.arrive instructions [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 18452] --- src/cuda-sim/ptx_ir.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/cuda-sim/ptx_ir.cc') diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc index a442e2e..b6c1b9a 100644 --- a/src/cuda-sim/ptx_ir.cc +++ b/src/cuda-sim/ptx_ir.cc @@ -1044,6 +1044,16 @@ ptx_instruction::ptx_instruction( int opcode, for ( i=options.begin(); i!= options.end(); i++, n++ ) { int last_ptx_inst_option = *i; switch ( last_ptx_inst_option ) { + case SYNC_OPTION: + case ARRIVE_OPTION: + case RED_OPTION: + m_barrier_op = last_ptx_inst_option; + break; + case OR_REDUCTION: + case AND_REDUCTION: + case POPC_REDUCTION: + m_reduction_op = last_ptx_inst_option; + break; case EQU_OPTION: case NEU_OPTION: case LTU_OPTION: -- cgit v1.3