Skip to content

Commit

Permalink
cuda: fix indentation in array-add.cu and inc.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
danbev committed Oct 10, 2024
1 parent c69bc4a commit bbca477
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gpu/cuda/src/array-add.cu
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ int main() {

printf("array a:\n");
for (int i = 0; i < N; i++) {
printf("%d ", h_a[i]);
printf("%d ", h_a[i]);
}
printf("\n");
printf("array b:\n");
for (int i = 0; i < N; i++) {
printf("%d ", h_b[i]);
printf("%d ", h_b[i]);
}
printf("\n");

Expand Down Expand Up @@ -58,7 +58,7 @@ int main() {

printf("Added on GPU:\n");
for (int i = 0; i < N; i++) {
printf("%d ", h_c[i]);
printf("%d ", h_c[i]);
}
printf("\n");

Expand Down
2 changes: 1 addition & 1 deletion gpu/cuda/src/inc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main() {

printf("Incremented on GPU:\n");
for (int i = 0; i < N; i++) {
printf("%d ", h_array[i]);
printf("%d ", h_array[i]);
}
printf("\n");

Expand Down

0 comments on commit bbca477

Please sign in to comment.