Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
computablee committed Nov 26, 2023
1 parent 4561480 commit 8f9450d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions benchmarks/GPUOverhead/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public class Overhead
// run the setup
[GlobalSetup]
public void Setup()
{
buf = new DotMP.GPU.Buffer<int>(new int[1, 1], DotMP.GPU.Buffer.Behavior.NoCopy);
{
buf = new DotMP.GPU.Buffer<int>(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) => { });
}
}

Expand Down
14 changes: 7 additions & 7 deletions benchmarks/ILGPUOverhead/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<ArrayView1D<int, Stride1D.Dense>>(arr => { });
data = accelerator.Allocate1D<int>(1);
{
var context = Context.CreateDefault();
var accelerator = context.Devices[1].CreateAccelerator(context);
kernel = accelerator.LoadStreamKernel<ArrayView1D<int, Stride1D.Dense>>(arr => { });
data = accelerator.Allocate1D<int>(1);
}

//run the simulation
[Benchmark]
public void TestOverhead()
{
kernel((1, 256), data);
{
kernel((1, 256), data);
}
}

Expand Down

0 comments on commit 8f9450d

Please sign in to comment.