summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJRPan <[email protected]>2025-09-07 16:20:04 -0700
committerGitHub <[email protected]>2025-09-07 16:20:04 -0700
commitb1a8f71b02231ee31a54cb980c4444650de8dfb4 (patch)
tree944ce84b05b824d590b692a3cde98ecde7ebd3fd /src
parent987a23f84f8705c0566a47aeda2132fa33a82618 (diff)
get stream ID retrieval from warp and clean up conditional checks in issue_block2core function. (#128)
Diffstat (limited to 'src')
-rw-r--r--src/gpgpu-sim/shader.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index cddd0a3..d388801 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -989,8 +989,8 @@ void shader_core_ctx::fetch() {
// mem_fetch *mf = m_mem_fetch_allocator->alloc()
mem_access_t acc(INST_ACC_R, ppc, nbytes, false, m_gpu->gpgpu_ctx);
mem_fetch *mf = new mem_fetch(
- acc, NULL, m_warp[warp_id]->get_kernel_info()->get_streamID(),
- READ_PACKET_SIZE, warp_id, m_sid, m_tpc, m_memory_config,
+ acc, NULL, m_warp[warp_id]->get_streamID(), READ_PACKET_SIZE,
+ warp_id, m_sid, m_tpc, m_memory_config,
m_gpu->gpu_tot_sim_cycle + m_gpu->gpu_sim_cycle);
std::list<cache_event> events;
enum cache_request_status status;
@@ -4557,8 +4557,7 @@ unsigned simt_core_cluster::issue_block2core() {
kernel = m_core[core]->get_kernel();
if (!m_gpu->kernel_more_cta_left(kernel)) {
// wait till current kernel finishes
- if (m_core[core]->get_not_completed() == 0 &&
- m_core[core]->pending_ctas.empty()) {
+ if (m_core[core]->get_not_completed() == 0) {
kernel_info_t *k = m_gpu->select_kernel();
if (k) m_core[core]->set_kernel(k);
kernel = k;