Fixed ComputeSharp.Benchmark project
このコミットが含まれているのは:
1 親
c4ab5bc7d6
コミット
04b6d35009
4ファイル変更
+27
-10
検索条件に一致するファイルはありません
@@ -2,5 +2,6 @@
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<add key="TerraFX-CI" value="https://pkgs.terrafx.dev/index.json" />
|
||||
<add key="BenchmarkDotNet-CI" value="https://ci.appveyor.com/nuget/benchmarkdotnet" />
|
||||
</packageSources>
|
||||
</configuration>
|
||||
@@ -6,7 +6,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" />
|
||||
<PackageReference Include="BenchmarkDotNet" Version="0.12.1.1473" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -3,12 +3,14 @@ using System.Buffers;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.CompilerServices;
|
||||
using BenchmarkDotNet.Attributes;
|
||||
using BenchmarkDotNet.Engines;
|
||||
|
||||
namespace ComputeSharp.Benchmark
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that benchmarks the APIs in the <see cref="Dnn"/> class, on both CPU and GPU.
|
||||
/// </summary>
|
||||
[SimpleJob(RunStrategy.Monitoring)]
|
||||
public class DnnBenchmark : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,18 +1,32 @@
|
||||
using BenchmarkDotNet.Running;
|
||||
using BenchmarkDotNet.Configs;
|
||||
using BenchmarkDotNet.Jobs;
|
||||
using BenchmarkDotNet.Running;
|
||||
using BenchmarkDotNet.Toolchains.CsProj;
|
||||
using BenchmarkDotNet.Toolchains.DotNetCli;
|
||||
|
||||
namespace ComputeSharp.Benchmark
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main()
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
/* =================
|
||||
* BenchmarkDotNet
|
||||
* ================
|
||||
* In order to run this benchmark, compile this project in Release mode,
|
||||
* then go to its bin\Release\netcoreapp3.0 folder, open a cmd prompt
|
||||
* and type "dotnet ComputeSharp.Benchmark.dll */
|
||||
BenchmarkRunner.Run<DnnBenchmark>();
|
||||
ManualConfig configuration =
|
||||
DefaultConfig.Instance.AddJob(
|
||||
Job.Default.WithToolchain(
|
||||
CsProjCoreToolchain.From(
|
||||
new NetCoreAppSettings(
|
||||
targetFrameworkMoniker: "net5.0-windows10.0.19041.0",
|
||||
runtimeFrameworkVersion: null,
|
||||
name: "5.0")))
|
||||
.AsDefault());
|
||||
|
||||
// =================
|
||||
// BenchmarkDotNet
|
||||
// ================
|
||||
// In order to run this benchmark, compile this project in Release mode,
|
||||
// then go to its bin\Release\netcoreapp3.0 folder, open a cmd prompt
|
||||
// and type "dotnet ComputeSharp.Benchmark.dll" to execute it.
|
||||
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, configuration);
|
||||
}
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする