summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authorJRPan <[email protected]>2025-08-18 23:09:47 -0700
committerGitHub <[email protected]>2025-08-19 06:09:47 +0000
commit21b18be3832b80b00d4890f041818bac431866e7 (patch)
tree4a8801a93a6dde20b747ef6db509215894c9f3ec /src/abstract_hardware_model.h
parent33644740f15e0fa9f3d64ff98956569b2acf47bc (diff)
running formatter (#126)
* running formatter * consolidate CI runs * use cluster to run formatter * use cluster to run formatter * Add a CI-Success step
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
index cddf523..06c3082 100644
--- a/src/abstract_hardware_model.h
+++ b/src/abstract_hardware_model.h
@@ -248,7 +248,9 @@ class kernel_info_t {
}
bool running() const { return m_num_cores_running > 0; }
bool done() const { return no_more_ctas_to_run() && !running(); }
- class function_info *entry() { return m_kernel_entry; }
+ class function_info *entry() {
+ return m_kernel_entry;
+ }
const class function_info *entry() const { return m_kernel_entry; }
size_t num_blocks() const {
@@ -298,7 +300,9 @@ class kernel_info_t {
std::list<class ptx_thread_info *> &active_threads() {
return m_active_threads;
}
- class memory_space *get_param_memory() { return m_param_mem; }
+ class memory_space *get_param_memory() {
+ return m_param_mem;
+ }
// The following functions access texture bindings present at the kernel's
// launch
@@ -605,9 +609,15 @@ class gpgpu_t {
void memcpy_from_gpu(void *dst, size_t src_start_addr, size_t count);
void memcpy_gpu_to_gpu(size_t dst, size_t src, size_t count);
- class memory_space *get_global_memory() { return m_global_mem; }
- class memory_space *get_tex_memory() { return m_tex_mem; }
- class memory_space *get_surf_memory() { return m_surf_mem; }
+ class memory_space *get_global_memory() {
+ return m_global_mem;
+ }
+ class memory_space *get_tex_memory() {
+ return m_tex_mem;
+ }
+ class memory_space *get_surf_memory() {
+ return m_surf_mem;
+ }
void gpgpu_ptx_sim_bindTextureToArray(const struct textureReference *texref,
const struct cudaArray *array);
@@ -1327,7 +1337,9 @@ class core_t {
virtual bool warp_waiting_at_barrier(unsigned warp_id) const = 0;
virtual void checkExecutionStatusAndUpdate(warp_inst_t &inst, unsigned t,
unsigned tid) = 0;
- class gpgpu_sim *get_gpu() { return m_gpu; }
+ class gpgpu_sim *get_gpu() {
+ return m_gpu;
+ }
void execute_warp_inst_t(warp_inst_t &inst, unsigned warpId = (unsigned)-1);
bool ptx_thread_done(unsigned hw_thread_id) const;
virtual void updateSIMTStack(unsigned warpId, warp_inst_t *inst);
@@ -1337,7 +1349,9 @@ class core_t {
void get_pdom_stack_top_info(unsigned warpId, unsigned *pc,
unsigned *rpc) const;
kernel_info_t *get_kernel_info() { return m_kernel; }
- class ptx_thread_info **get_thread_info() { return m_thread; }
+ class ptx_thread_info **get_thread_info() {
+ return m_thread;
+ }
unsigned get_warp_size() const { return m_warp_size; }
void and_reduction(unsigned ctaid, unsigned barid, bool value) {
reduction_storage[ctaid][barid] &= value;