Skip to content

Commit

Permalink
Fix format for a file
Browse files Browse the repository at this point in the history
  • Loading branch information
FJShen committed Aug 14, 2023
1 parent dbb23a6 commit 2331350
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/gpgpu-sim/shader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,16 @@ void shader_core_ctx::create_schedulers() {
// must currently occur after all inputs have been initialized.
std::string sched_config = m_config->gpgpu_scheduler_string;
const concrete_scheduler scheduler =
sched_config.find("lrr") != std::string::npos
? CONCRETE_SCHEDULER_LRR
: sched_config.find("two_level_active") != std::string::npos
? CONCRETE_SCHEDULER_TWO_LEVEL_ACTIVE
: sched_config.find("gto") != std::string::npos
? CONCRETE_SCHEDULER_GTO
: sched_config.find("rrr") != std::string::npos
? CONCRETE_SCHEDULER_RRR
: sched_config.find("old") != std::string::npos
? CONCRETE_SCHEDULER_OLDEST_FIRST
: sched_config.find("warp_limiting") !=
std::string::npos
? CONCRETE_SCHEDULER_WARP_LIMITING
: NUM_CONCRETE_SCHEDULERS;
sched_config.find("lrr") != std::string::npos ? CONCRETE_SCHEDULER_LRR
: sched_config.find("two_level_active") != std::string::npos
? CONCRETE_SCHEDULER_TWO_LEVEL_ACTIVE
: sched_config.find("gto") != std::string::npos ? CONCRETE_SCHEDULER_GTO
: sched_config.find("rrr") != std::string::npos ? CONCRETE_SCHEDULER_RRR
: sched_config.find("old") != std::string::npos
? CONCRETE_SCHEDULER_OLDEST_FIRST
: sched_config.find("warp_limiting") != std::string::npos
? CONCRETE_SCHEDULER_WARP_LIMITING
: NUM_CONCRETE_SCHEDULERS;
assert(scheduler != NUM_CONCRETE_SCHEDULERS);

for (unsigned i = 0; i < m_config->gpgpu_num_sched_per_core; i++) {
Expand Down

0 comments on commit 2331350

Please sign in to comment.