diff --git a/samples/ComputeSharp.Benchmark/DnnBenchmark.cs b/samples/ComputeSharp.Benchmark/Blas/BlasBenchmark.cs
similarity index 90%
rename from samples/ComputeSharp.Benchmark/DnnBenchmark.cs
rename to samples/ComputeSharp.Benchmark/Blas/BlasBenchmark.cs
index 186d119f..2f1e91ed 100644
--- a/samples/ComputeSharp.Benchmark/DnnBenchmark.cs
+++ b/samples/ComputeSharp.Benchmark/Blas/BlasBenchmark.cs
@@ -4,13 +4,13 @@ using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
-namespace ComputeSharp.Benchmark
+namespace ComputeSharp.Benchmark.Blas
{
///
/// A that benchmarks the APIs in the class, on both CPU and GPU.
///
[SimpleJob(RunStrategy.Monitoring)]
- public class DnnBenchmark : IDisposable
+ public class BlasBenchmark : IDisposable
{
///
/// The number of samples.
@@ -128,13 +128,19 @@ namespace ComputeSharp.Benchmark
/// Runs a fully connected forward operation on the CPU.
///
[Benchmark(Baseline = true)]
- public void Cpu() => Dnn.FullyConnectedForwardCpu(C, N, M, P, X, W, B, Y);
+ public void Cpu()
+ {
+ BlasHelpers.FullyConnectedForwardCpu(C, N, M, P, X, W, B, Y);
+ }
///
/// Runs a fully connected forward operation on the GPU.
///
[Benchmark]
- public void GpuWithNoTemporaryBuffers() => Dnn.FullyConnectedForwardGpu(Gpu.Default, C, N, M, P, BufferX, BufferW, BufferB, BufferY);
+ public void GpuWithNoTemporaryBuffers()
+ {
+ BlasHelpers.FullyConnectedForwardGpu(Gpu.Default, C, N, M, P, BufferX, BufferW, BufferB, BufferY);
+ }
///
/// Runs a fully connected forward operation on the GPU, creating temporary GPU buffers to perform the operations.
@@ -147,7 +153,7 @@ namespace ComputeSharp.Benchmark
using ReadOnlyBuffer b = Gpu.Default.AllocateReadOnlyBuffer(B);
using ReadWriteBuffer y = Gpu.Default.AllocateReadWriteBuffer(Y);
- Dnn.FullyConnectedForwardGpu(Gpu.Default, C, N, M, P, x, w, b, y);
+ BlasHelpers.FullyConnectedForwardGpu(Gpu.Default, C, N, M, P, x, w, b, y);
y.GetData(Y);
}
diff --git a/samples/ComputeSharp.Benchmark/Dnn.cs b/samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs
similarity index 98%
rename from samples/ComputeSharp.Benchmark/Dnn.cs
rename to samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs
index 3f8087ba..6634e708 100644
--- a/samples/ComputeSharp.Benchmark/Dnn.cs
+++ b/samples/ComputeSharp.Benchmark/Blas/BlasHelpers.cs
@@ -2,12 +2,12 @@
using System.Threading.Tasks;
using ComputeSharp.Graphics;
-namespace ComputeSharp.Benchmark
+namespace ComputeSharp.Benchmark.Blas
{
///
/// A that contains primitives to run certain operations of a neural network.
///
- internal static partial class Dnn
+ internal static partial class BlasHelpers
{
///
/// Executes the forward pass on a fully connected layer on the CPU.