diff --git a/benchmarks/GPUOverhead/Program.cs b/benchmarks/GPUOverhead/Program.cs index 579d3868..9c0dde2c 100644 --- a/benchmarks/GPUOverhead/Program.cs +++ b/benchmarks/GPUOverhead/Program.cs @@ -32,15 +32,15 @@ public class Overhead // run the setup [GlobalSetup] public void Setup() - { - buf = new DotMP.GPU.Buffer(new int[1, 1], DotMP.GPU.Buffer.Behavior.NoCopy); + { + buf = new DotMP.GPU.Buffer(new int[1, 1], DotMP.GPU.Buffer.Behavior.NoCopy); } //run the simulation [Benchmark] public void TestOverhead() - { - DotMP.GPU.Parallel.ParallelForCollapse((0, 500), (0, 500), buf, (i, j, buf) => { }); + { + DotMP.GPU.Parallel.ParallelForCollapse((0, 500), (0, 500), buf, (i, j, buf) => { }); } } diff --git a/benchmarks/ILGPUOverhead/Program.cs b/benchmarks/ILGPUOverhead/Program.cs index 862ae1af..6153183c 100644 --- a/benchmarks/ILGPUOverhead/Program.cs +++ b/benchmarks/ILGPUOverhead/Program.cs @@ -36,18 +36,18 @@ public class Overhead // run the setup [GlobalSetup] public void Setup() - { - var context = Context.CreateDefault(); - var accelerator = context.Devices[1].CreateAccelerator(context); - kernel = accelerator.LoadStreamKernel>(arr => { }); - data = accelerator.Allocate1D(1); + { + var context = Context.CreateDefault(); + var accelerator = context.Devices[1].CreateAccelerator(context); + kernel = accelerator.LoadStreamKernel>(arr => { }); + data = accelerator.Allocate1D(1); } //run the simulation [Benchmark] public void TestOverhead() - { - kernel((1, 256), data); + { + kernel((1, 256), data); } }