diff options
| author | Ahmed El-Shafiey <[email protected]> | 2012-11-30 23:07:40 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:22 -0700 |
| commit | a4e786e7ba32deb2877722650a907ccdb1bef096 (patch) | |
| tree | ad16af8eb995fcd05b3eda579284e192ea9cb6a3 /src/gpgpu-sim/shader.cc | |
| parent | aab87f149f7442d1447cbb82cc6290d185a56aa5 (diff) | |
fixing a segfault problem for Quadro config with interconnect stats
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14737]
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
| -rw-r--r-- | src/gpgpu-sim/shader.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 4095cbc..ad097e8 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -971,10 +971,15 @@ void ldst_unit::set_icnt_power_stats(unsigned &simt_to_mem) const{ unsigned tex=0; unsigned l1c=0; - m_L1D->set_icnt_power_stats(l1d); - m_L1T->set_icnt_power_stats(tex); - m_L1C->set_icnt_power_stats(l1c); - + if( m_L1D ) { + m_L1D->set_icnt_power_stats(l1d); + } + if( m_L1T ){ + m_L1T->set_icnt_power_stats(tex); + } + if( m_L1C ){ + m_L1C->set_icnt_power_stats(l1c); + } simt_to_mem = n_simt_to_mem+l1d+tex+l1c; // All components that push packets into the interconnect } |
