Skip to content

Commit a5ad2c3

Browse files
committed
run formatter
1 parent a5ec9be commit a5ad2c3

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

src/abstract_hardware_model.h

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,9 @@ class kernel_info_t {
248248
}
249249
bool running() const { return m_num_cores_running > 0; }
250250
bool done() const { return no_more_ctas_to_run() && !running(); }
251-
class function_info *entry() { return m_kernel_entry; }
251+
class function_info *entry() {
252+
return m_kernel_entry;
253+
}
252254
const class function_info *entry() const { return m_kernel_entry; }
253255

254256
size_t num_blocks() const {
@@ -298,7 +300,9 @@ class kernel_info_t {
298300
std::list<class ptx_thread_info *> &active_threads() {
299301
return m_active_threads;
300302
}
301-
class memory_space *get_param_memory() { return m_param_mem; }
303+
class memory_space *get_param_memory() {
304+
return m_param_mem;
305+
}
302306

303307
// The following functions access texture bindings present at the kernel's
304308
// launch
@@ -469,7 +473,7 @@ class simt_stack {
469473
m_active_mask(),
470474
m_recvg_pc(-1),
471475
m_branch_div_cycle(0),
472-
m_type(STACK_ENTRY_TYPE_NORMAL) {};
476+
m_type(STACK_ENTRY_TYPE_NORMAL){};
473477
};
474478

475479
std::deque<simt_stack_entry> m_stack;
@@ -606,9 +610,15 @@ class gpgpu_t {
606610
void memcpy_from_gpu(void *dst, size_t src_start_addr, size_t count);
607611
void memcpy_gpu_to_gpu(size_t dst, size_t src, size_t count);
608612

609-
class memory_space *get_global_memory() { return m_global_mem; }
610-
class memory_space *get_tex_memory() { return m_tex_mem; }
611-
class memory_space *get_surf_memory() { return m_surf_mem; }
613+
class memory_space *get_global_memory() {
614+
return m_global_mem;
615+
}
616+
class memory_space *get_tex_memory() {
617+
return m_tex_mem;
618+
}
619+
class memory_space *get_surf_memory() {
620+
return m_surf_mem;
621+
}
612622

613623
void gpgpu_ptx_sim_bindTextureToArray(const struct textureReference *texref,
614624
const struct cudaArray *array);
@@ -1328,7 +1338,9 @@ class core_t {
13281338
virtual bool warp_waiting_at_barrier(unsigned warp_id) const = 0;
13291339
virtual void checkExecutionStatusAndUpdate(warp_inst_t &inst, unsigned t,
13301340
unsigned tid) = 0;
1331-
class gpgpu_sim *get_gpu() { return m_gpu; }
1341+
class gpgpu_sim *get_gpu() {
1342+
return m_gpu;
1343+
}
13321344
void execute_warp_inst_t(warp_inst_t &inst, unsigned warpId = (unsigned)-1);
13331345
bool ptx_thread_done(unsigned hw_thread_id) const;
13341346
virtual void updateSIMTStack(unsigned warpId, warp_inst_t *inst);
@@ -1338,7 +1350,9 @@ class core_t {
13381350
void get_pdom_stack_top_info(unsigned warpId, unsigned *pc,
13391351
unsigned *rpc) const;
13401352
kernel_info_t *get_kernel_info() { return m_kernel; }
1341-
class ptx_thread_info **get_thread_info() { return m_thread; }
1353+
class ptx_thread_info **get_thread_info() {
1354+
return m_thread;
1355+
}
13421356
unsigned get_warp_size() const { return m_warp_size; }
13431357
void and_reduction(unsigned ctaid, unsigned barid, bool value) {
13441358
reduction_storage[ctaid][barid] &= value;

0 commit comments

Comments
 (0)