Skip to content

Commit

Permalink
sync, cleanup: compute runs
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Oct 21, 2024
1 parent f08f1b6 commit 485f0b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
39 changes: 0 additions & 39 deletions src/gpgpu-sim/shader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,6 @@ void shader_core_ctx::create_schedulers() {
&m_pipeline_reg[ID_OC_TENSOR_CORE], m_specilized_dispatch_reg,
&m_pipeline_reg[ID_OC_MEM], i, m_config->gpgpu_scheduler_string));
break;
case CONCRETE_SCHEDULER_BEST:
schedulers.push_back(new best_scheduler(
m_stats, this, m_scoreboard, m_simt_stack, &m_warp,
&m_pipeline_reg[ID_OC_SP], &m_pipeline_reg[ID_OC_DP],
&m_pipeline_reg[ID_OC_SFU], &m_pipeline_reg[ID_OC_INT],
&m_pipeline_reg[ID_OC_TENSOR_CORE], m_specilized_dispatch_reg,
&m_pipeline_reg[ID_OC_MEM], i));
break;
default:
abort();
};
Expand Down Expand Up @@ -1608,37 +1600,6 @@ bool scheduler_unit::sort_warps_by_oldest_dynamic_id(shd_warp_t *lhs,
return lhs < rhs;
}
}
void best_scheduler::order_warps() {
unsigned num_warps_to_add = m_supervised_warps.size();
assert(num_warps_to_add <= m_supervised_warps.size());
unsigned count = 0;
m_next_cycle_prioritized_warps.clear();
std::vector<shd_warp_t *>::const_iterator iter =
(m_last_supervised_issued == m_supervised_warps.end())
? m_supervised_warps.begin()
: m_last_supervised_issued + 1;
// std::unordered_map<shd_warp_t *, unsigned> skip;
for (std::vector<shd_warp_t *>::const_iterator iter2 =
m_supervised_warps.begin();
iter2 != m_supervised_warps.end(); ++iter2) {
if (!(*iter2)->is_graphics) {
m_next_cycle_prioritized_warps.push_back(*iter2);
// skip[*iter2] = 1;
count++;
}
}

for (; count < num_warps_to_add; iter++) {
if (iter == m_supervised_warps.end()) {
iter = m_supervised_warps.begin();
}
if ((*iter)->is_graphics) {
// if (skip.find(*iter) == skip.end()) {
m_next_cycle_prioritized_warps.push_back(*iter);
count++;
}
}
}

void lrr_scheduler::order_warps() {
order_lrr(m_next_cycle_prioritized_warps, m_supervised_warps,
Expand Down
20 changes: 0 additions & 20 deletions src/gpgpu-sim/shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ enum concrete_scheduler {
CONCRETE_SCHEDULER_RRR,
CONCRETE_SCHEDULER_WARP_LIMITING,
CONCRETE_SCHEDULER_OLDEST_FIRST,
CONCRETE_SCHEDULER_BEST,
NUM_CONCRETE_SCHEDULERS
};

Expand Down Expand Up @@ -495,25 +494,6 @@ class scheduler_unit { // this can be copied freely, so can be used in std
int m_id;
};

class best_scheduler : public scheduler_unit {
public:
best_scheduler(shader_core_stats *stats, shader_core_ctx *shader,
Scoreboard *scoreboard, std::vector<simt_stack *> simt,
std::vector<shd_warp_t *> *warp, register_set *sp_out,
register_set *dp_out, register_set *sfu_out,
register_set *int_out, register_set *tensor_core_out,
std::vector<register_set *> &spec_cores_out,
register_set *mem_out, int id)
: scheduler_unit(stats, shader, scoreboard, simt, warp, sp_out, dp_out,
sfu_out, int_out, tensor_core_out, spec_cores_out,
mem_out, id) {}
virtual ~best_scheduler() {}
virtual void order_warps();
virtual void done_adding_supervised_warps() {
m_last_supervised_issued = m_supervised_warps.end();
}
};

class lrr_scheduler : public scheduler_unit {
public:
lrr_scheduler(shader_core_stats *stats, shader_core_ctx *shader,
Expand Down

0 comments on commit 485f0b0

Please sign in to comment.