summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim
diff options
context:
space:
mode:
authorJRPan <[email protected]>2024-08-16 11:16:06 -0400
committerGitHub <[email protected]>2024-08-16 15:16:06 +0000
commit42a0cde4b463794d041b544309afb69c315f78bc (patch)
treeacc2196fb5157f7167de0318bb3aa1a20a7f70af /src/gpgpu-sim
parent081da0abacbc3595b090094b1a66fc37d35bd82a (diff)
remove unused & unintilized variables & format automation (#69)
* run formatter only on PR * remove unused & unintilized variables * fix signed & unsigned comparison warning * enable merge queue * resolve conflict * in formatter, checkout the forked repo, not the base repo in PR * Try to use jenkins for formatter * Automated Format --------- Co-authored-by: purdue-jenkins <[email protected]>
Diffstat (limited to 'src/gpgpu-sim')
-rw-r--r--src/gpgpu-sim/gpu-sim.h6
-rw-r--r--src/gpgpu-sim/shader.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gpgpu-sim/gpu-sim.h b/src/gpgpu-sim/gpu-sim.h
index a24ffd3..d43b399 100644
--- a/src/gpgpu-sim/gpu-sim.h
+++ b/src/gpgpu-sim/gpu-sim.h
@@ -132,9 +132,9 @@ struct power_config {
// NOTE: After changing the nonlinear model to only scaling idle core,
// NOTE: The min_inc_per_active_sm is not used any more
- if (g_use_nonlinear_model)
- sscanf(gpu_nonlinear_model_config, "%lf:%lf", &gpu_idle_core_power,
- &gpu_min_inc_per_active_sm);
+ // if (g_use_nonlinear_model)
+ // sscanf(gpu_nonlinear_model_config, "%lf:%lf", &gpu_idle_core_power,
+ // &gpu_min_inc_per_active_sm);
}
void reg_options(class OptionParser *opp);
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index b1f904f..92691d3 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -134,7 +134,7 @@ class shd_warp_t {
m_waiting_ldgsts = false;
// Ni: Clear m_ldgdepbar_buf
- for (int i = 0; i < m_ldgdepbar_buf.size(); i++) {
+ for (unsigned i = 0; i < m_ldgdepbar_buf.size(); i++) {
m_ldgdepbar_buf[i].clear();
}
m_ldgdepbar_buf.clear();
@@ -165,7 +165,7 @@ class shd_warp_t {
m_waiting_ldgsts = false;
// Ni: Clear m_ldgdepbar_buf
- for (int i = 0; i < m_ldgdepbar_buf.size(); i++) {
+ for (unsigned i = 0; i < m_ldgdepbar_buf.size(); i++) {
m_ldgdepbar_buf[i].clear();
}
m_ldgdepbar_buf.clear();