diff options
| author | Jin Wang <[email protected]> | 2014-11-14 18:45:46 -0500 |
|---|---|---|
| committer | Jin Wang <[email protected]> | 2016-07-06 02:17:15 -0400 |
| commit | 8ef2e4eb13093c59190439800fdd0cc552a3779e (patch) | |
| tree | da3ab84939d3faabd8384e8d79e10766453c3e24 /src/cuda-sim/ptx_ir.cc | |
| parent | 69bb1082de9df29d1d7b40486301049767e607b0 (diff) | |
ADD: add cdp latency
Diffstat (limited to 'src/cuda-sim/ptx_ir.cc')
| -rw-r--r-- | src/cuda-sim/ptx_ir.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cuda-sim/ptx_ir.cc b/src/cuda-sim/ptx_ir.cc index 176eb14..4931213 100644 --- a/src/cuda-sim/ptx_ir.cc +++ b/src/cuda-sim/ptx_ir.cc @@ -1241,10 +1241,12 @@ ptx_instruction::ptx_instruction( int opcode, if (fname =="vprintf"){ m_is_printf = true; } - if (fname == "cudaGetParameterBufferV2" - || fname == "cudaLaunchDeviceV2" - || fname == "cudaStreamCreateWithFlags") - m_is_cdp = true; + if(fname == "cudaGetParameterBufferV2") + m_is_cdp = 1; + if(fname == "cudaStreamCreateWithFlags") + m_is_cdp = 2; + if(fname == "cudaLaunchDeviceV2") + m_is_cdp = 3; } } |
