Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 24, 2024
1 parent f3640cf commit 8238579
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/acc/libsmm_acc/kernels/smm_acc_dnt_medium.h
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ __global__ void __launch_bounds__(threads, minblocks) smm_acc_dnt_medium(const i
}
if (need_sync) syncthreads();

/* Add results from shared memory buffer to global C block. */
/* Add results from shared memory buffer to global C block. */
#pragma unroll
for (int i = tidx; i < mn; i += threads) {
atomicAdd(&c_data[srcC + i], buff[i]);
Expand Down
4 changes: 2 additions & 2 deletions src/acc/libsmm_acc/kernels/smm_acc_dnt_small.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ __global__ void __launch_bounds__(threads, minblocks) smm_acc_dnt_small(const in
nrun = grouping;
if (((bidx + 1) * grouping) > stack_size) nrun = stack_size % grouping;

/* Set the partial sum (tile T) to zero */
/* Set the partial sum (tile T) to zero */
#pragma unroll
for (int i = 0; i < M * N; i++) myc[i] = 0.0;

Expand Down Expand Up @@ -203,7 +203,7 @@ __global__ void __launch_bounds__(threads, minblocks) smm_acc_dnt_small(const in

if (need_sync) syncthreads();

/* Add results from shared memory buffer to global C block. */
/* Add results from shared memory buffer to global C block. */
#pragma unroll
for (int i = tidx; i < mn; i += threads) atomicAdd(&c_data[srcC + i], buff[i]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/acc/opencl/smm/opencl_libsmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ int opencl_libsmm_read_smm_params(char* parambuf, opencl_libsmm_smmkey_t* key, o
LIBXSMM_MEMZERO127(key); /* potentially heterogeneous key-data (alignment gaps) */
memset(value, 0, sizeof(opencl_libsmm_smm_t));
for (; NULL != s;
++i, s = (c != consumed ? ((s + 1) < end ? strtok((s + 1) + strlen(s), ACC_OPENCL_DELIMS) : NULL) : s), c = consumed)
++i, s = (c != consumed ? ((s + 1) < end ? strtok((s + 1) + strlen(s), ACC_OPENCL_DELIMS) : NULL) : s), c = consumed)
{
switch (i) {
case 0:
Expand Down

0 comments on commit 8238579

Please sign in to comment.