Skip to content

Commit 177c0b3

Browse files
authored
misc: fix format (#388)
1 parent 604e4f1 commit 177c0b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<a href="#contribute">🔥🔥 PR Welcome: Add Your Kernel to LeetCUDA! Let's make it Awesome together! 🎉🎉</a> <br>
2121
<a href=https://github.com/xlite-dev/LeetCUDA/graphs/contributors > <img src=https://opencollective.com/leetcuda/contributors.svg height=40px > </a>
2222
</p>
23-
<a href="https://hellogithub.com/repository/98348655a96640ca8ddcbc298edc901d" target="_blank"><img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=98348655a96640ca8ddcbc298edc901d&claim_uid=ofSCbzTmdeQk3FD&theme=dark" alt="Featured|HelloGitHub" style="width: 250px; height: 54px;" width="250" height="54" /></a>
23+
<a href="https://hellogithub.com/repository/98348655a96640ca8ddcbc298edc901d" target="_blank"><img src="https://api.hellogithub.com/v1/widgets/recommend.svg?rid=98348655a96640ca8ddcbc298edc901d&claim_uid=ofSCbzTmdeQk3FD&theme=dark" alt="Featured|HelloGitHub" style="width: 250px; height: 54px;" width="250" height="54" /></a>
2424
</div>
2525
-->
2626

kernels/elementwise/elementwise.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ __global__ void elementwise_add_f16x8_pack_kernel(half *a, half *b, half *c,
118118
if ((idx + 7) < N) {
119119
LDST128BITS(c[idx]) = LDST128BITS(pack_c[0]);
120120
} else {
121-
for (int i=0; idx+i<N; i++) {
122-
c[idx+i] = __hadd(a[idx+i], b[idx+i]);
121+
for (int i = 0; idx + i < N; i++) {
122+
c[idx + i] = __hadd(a[idx + i], b[idx + i]);
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)