Skip to content

Commit

Permalink
Merge pull request #128 from HamletTanyavong/dev
Browse files Browse the repository at this point in the history
Adjust indentation and add last new line in kernels
  • Loading branch information
HamletTanyavong authored Aug 22, 2024
2 parents 816c99a + b43b7ca commit 9844be1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Mathematics.NET/GPU/OpenCL/Kernels/comp_mat_mul.cl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__kernel void comp_mat_mul(__global const complex* matA,
__global const complex* matB,
int const k,
__global complex* result)
__global const complex* matB,
int const k,
__global complex* result)
{
int row = get_global_id(0);
int col = get_global_id(1);
Expand All @@ -22,4 +22,4 @@ __kernel void comp_mat_mul(__global const complex* matA,
}

result[row * width + col] = sum;
}
}
4 changes: 2 additions & 2 deletions src/Mathematics.NET/GPU/OpenCL/Kernels/comp_vec_mul_scalar.cl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__kernel void comp_vec_mul_scalar(__global const complex* vector,
const complex scalar,
__global complex* result)
const complex scalar,
__global complex* result)
{
int i = get_global_id(0);
result[i] = comp_mul(vector[i], scalar);
Expand Down

0 comments on commit 9844be1

Please sign in to comment.