Skip to content

Commit

Permalink
Merge pull request #822 from Sergio0694/dev/fix-blas-offset
Browse files Browse the repository at this point in the history
Fix 'x' offset in GPU powered BLAS method
  • Loading branch information
Sergio0694 authored Jul 5, 2024
2 parents b05a118 + 3b414b4 commit bbd6714
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 bbd6714

Please sign in to comment.