summaryrefslogtreecommitdiff
path: root/libcuda/cuda_api_object.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 /libcuda/cuda_api_object.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 'libcuda/cuda_api_object.h')
-rw-r--r--libcuda/cuda_api_object.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libcuda/cuda_api_object.h b/libcuda/cuda_api_object.h
index 3e34641..e620e57 100644
--- a/libcuda/cuda_api_object.h
+++ b/libcuda/cuda_api_object.h
@@ -35,7 +35,9 @@ struct _cuda_device_id {
m_next = NULL;
m_gpgpu = gpu;
}
- struct _cuda_device_id *next() { return m_next; }
+ struct _cuda_device_id *next() {
+ return m_next;
+ }
unsigned num_shader() const { return m_gpgpu->get_config().num_shader(); }
int num_devices() const {
if (m_next == NULL)
@@ -156,7 +158,9 @@ class kernel_config {
void set_grid_dim(dim3 *d) { m_GridDim = *d; }
void set_block_dim(dim3 *d) { m_BlockDim = *d; }
gpgpu_ptx_sim_arg_list_t get_args() { return m_args; }
- struct CUstream_st *get_stream() { return m_stream; }
+ struct CUstream_st *get_stream() {
+ return m_stream;
+ }
private:
dim3 m_GridDim;