Skip to content

Commit 45caf76

Browse files
authored
move get_current_occupancy outside conditional (#83)
1 parent 3844f75 commit 45caf76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gpgpu-sim/gpu-sim.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -2070,10 +2070,10 @@ void gpgpu_sim::cycle() {
20702070
m_power_stats->pwr_mem_stat->n_mem_to_simt[CURRENT_STAT_IDX][i]);
20712071
m_cluster[i]->get_cache_stats(
20722072
m_power_stats->pwr_mem_stat->core_cache_stats[CURRENT_STAT_IDX]);
2073-
m_cluster[i]->get_current_occupancy(
2074-
gpu_occupancy.aggregate_warp_slot_filled,
2075-
gpu_occupancy.aggregate_theoretical_warp_slots);
20762073
}
2074+
m_cluster[i]->get_current_occupancy(
2075+
gpu_occupancy.aggregate_warp_slot_filled,
2076+
gpu_occupancy.aggregate_theoretical_warp_slots);
20772077
}
20782078
float temp = 0;
20792079
for (unsigned i = 0; i < m_shader_config->num_shader(); i++) {

0 commit comments

Comments
 (0)