summaryrefslogtreecommitdiff
path: root/src/cuda-sim/cuda-sim.cc
diff options
context:
space:
mode:
authornegargoli93 <[email protected]>2018-06-20 18:20:05 -0700
committernegargoli93 <[email protected]>2018-06-20 18:20:05 -0700
commit262663ac90d2aa801d6af1eb9bf8a75ee9a5bb18 (patch)
tree4d2d668571bc8e62e4c25f2a1fe9f0283ea0e5a5 /src/cuda-sim/cuda-sim.cc
parentacc52418fe873712ed56a072190356ecc874a35b (diff)
Tensor core timing model
Diffstat (limited to 'src/cuda-sim/cuda-sim.cc')
-rw-r--r--src/cuda-sim/cuda-sim.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cuda-sim/cuda-sim.cc b/src/cuda-sim/cuda-sim.cc
index 7552acf..6da0840 100644
--- a/src/cuda-sim/cuda-sim.cc
+++ b/src/cuda-sim/cuda-sim.cc
@@ -520,7 +520,7 @@ void ptx_instruction::set_mul_div_or_other_archop(){
sp_op=FP_EXP_OP;
break;
default:
- if(op==ALU_OP)
+ if((op==ALU_OP)||(op==TENSOR_CORE_OP))
sp_op=FP__OP;
break;
@@ -542,7 +542,7 @@ void ptx_instruction::set_mul_div_or_other_archop(){
sp_op=INT_DIV_OP;
break;
default:
- if(op==ALU_OP)
+ if((op==ALU_OP)||(op==TENSOR_CORE_OP))
sp_op=INT__OP;
break;
}
@@ -795,6 +795,7 @@ void ptx_instruction::set_opcode_and_latency()
case MMA_OP:
latency = 64;
initiation_interval = 64;
+ op=TENSOR_CORE_OP;
break;
case SHFL_OP:
latency = 32;