Skip to content

Commit

Permalink
Fix 'x' offset in GPU powered BLAS method
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jul 5, 2024
1 parent b05a118 commit 3b414b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public readonly partial struct FullyConnectedForwardKernel(
/// <inheritdoc/>
public void Execute()
{
int x_offset = (ThreadIds.X * n * p) + (ThreadIds.Y * m);
int x_offset = (ThreadIds.X * n * m) + (ThreadIds.Y * m);
float result = 0f;

for (int k = 0; k < m; k++)
Expand Down

0 comments on commit 3b414b4

Please sign in to comment.