Skip to content

Commit b1a8f71

Browse files
authored
get stream ID retrieval from warp and clean up conditional checks in issue_block2core function. (#128)
1 parent 987a23f commit b1a8f71

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/gpgpu-sim/shader.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,8 @@ void shader_core_ctx::fetch() {
989989
// mem_fetch *mf = m_mem_fetch_allocator->alloc()
990990
mem_access_t acc(INST_ACC_R, ppc, nbytes, false, m_gpu->gpgpu_ctx);
991991
mem_fetch *mf = new mem_fetch(
992-
acc, NULL, m_warp[warp_id]->get_kernel_info()->get_streamID(),
993-
READ_PACKET_SIZE, warp_id, m_sid, m_tpc, m_memory_config,
992+
acc, NULL, m_warp[warp_id]->get_streamID(), READ_PACKET_SIZE,
993+
warp_id, m_sid, m_tpc, m_memory_config,
994994
m_gpu->gpu_tot_sim_cycle + m_gpu->gpu_sim_cycle);
995995
std::list<cache_event> events;
996996
enum cache_request_status status;
@@ -4557,8 +4557,7 @@ unsigned simt_core_cluster::issue_block2core() {
45574557
kernel = m_core[core]->get_kernel();
45584558
if (!m_gpu->kernel_more_cta_left(kernel)) {
45594559
// wait till current kernel finishes
4560-
if (m_core[core]->get_not_completed() == 0 &&
4561-
m_core[core]->pending_ctas.empty()) {
4560+
if (m_core[core]->get_not_completed() == 0) {
45624561
kernel_info_t *k = m_gpu->select_kernel();
45634562
if (k) m_core[core]->set_kernel(k);
45644563
kernel = k;

0 commit comments

Comments
 (0)