summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2017-10-13 22:20:57 -0400
committerMahmoud <[email protected]>2017-10-13 22:20:57 -0400
commit07b375cc0c0da2b8a8ca7263f11ecca8ebaf8fe9 (patch)
tree2bb4ae6efeb9d04f6a775f6f7ecb5869f2931840
parent6e60441e5724f3d9dd974c17ca67e7bf3e1f990b (diff)
ensure that first launch uses simt cluster 0
-rw-r--r--src/gpgpu-sim/gpu-sim.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index eac92b4..470fcf4 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -671,7 +671,7 @@ gpgpu_sim::gpgpu_sim( const gpgpu_sim_config &config )
m_running_kernels.resize( config.max_concurrent_kernel, NULL );
m_last_issued_kernel = 0;
- m_last_cluster_issue = 0;
+ m_last_cluster_issue = m_shader_config->n_simt_clusters-1; // this causes first launch to use simt cluster 0
*average_pipeline_duty_cycle=0;
*active_sms=0;