Skip to content

Commit

Permalink
test the auto-formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
barnes88 committed Jul 13, 2024
1 parent b4819c0 commit eb1bd8c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/gpgpu-sim/shader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "addrdec.h"
#include "dram.h"
#include "gpu-misc.h"
#include "gpu-sim.h"
#include "gpu-sim.h"
#include "icnt_wrapper.h"
#include "mem_fetch.h"
#include "mem_latency_stat.h"
Expand All @@ -59,10 +59,10 @@ mem_fetch *shader_core_mem_fetch_allocator::alloc(
new_addr_type addr, mem_access_type type, unsigned size, bool wr,
unsigned long long cycle) const {
mem_access_t access(type, addr, size, wr, m_memory_config->gpgpu_ctx);
mem_fetch *mf =
mem_fetch *mf =
new mem_fetch(access, NULL, wr ? WRITE_PACKET_SIZE : READ_PACKET_SIZE, -1,
m_core_id, m_cluster_id, m_memory_config, cycle);
return mf;
return mf;
}

mem_fetch *shader_core_mem_fetch_allocator::alloc(
Expand Down Expand Up @@ -105,8 +105,8 @@ void shader_core_ctx::create_front_pipeline() {
N_PIPELINE_STAGES + m_config->m_specialized_unit.size() * 2;
m_pipeline_reg.reserve(total_pipeline_stages);
for (int j = 0; j < N_PIPELINE_STAGES; j++) {
m_pipeline_reg.push_back(
register_set(m_config->pipe_widths[j], pipeline_stage_name_decode[j]));
m_pipeline_reg.push_back(
register_set(m_config->pipe_widths[j],pipeline_stage_name_decode[j]));
}
for (unsigned j = 0; j < m_config->m_specialized_unit.size(); j++) {
m_pipeline_reg.push_back(
Expand Down Expand Up @@ -149,13 +149,14 @@ void shader_core_ctx::create_front_pipeline() {
}

m_threadState = (thread_ctx_t *)calloc(sizeof(thread_ctx_t),
m_config->n_thread_per_shader);
m_config->n_thread_per_shader);

m_not_completed = 0;
m_active_threads.reset();
m_n_active_cta = 0;
for (unsigned i = 0; i < MAX_CTA_PER_SHADER; i++) m_cta_status[i] = 0;
for (unsigned i = 0; i < m_config->n_thread_per_shader; i++) {
for (unsigned i = 0; i < m_config->n_thread_per_shader; i++)
{
m_thread[i] = NULL;
m_threadState[i].m_cta_id = -1;
m_threadState[i].m_active = false;
Expand Down

0 comments on commit eb1bd8c

Please sign in to comment.