Skip to content

Commit 8719988

Browse files
committed
Add mkl provider for mathnet
1 parent d94a1ed commit 8719988

5 files changed

Lines changed: 10 additions & 2 deletions

File tree

benchmarks/GraphBLAS-sharp.Benchmarks/BenchmarksEWiseAdd.fs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ type EWiseAddBenchmarks() =
5656
let mutable firstMatrix = Unchecked.defaultof<COOFormat<float>>
5757
let mutable secondMatrix = Unchecked.defaultof<COOFormat<float>>
5858

59+
do
60+
Control.UseNativeMKL()
61+
5962
[<ParamsSource("InputMatricesProvider")>]
6063
member val InputMatrix = Unchecked.defaultof<InputMatrixFormat> with get, set
6164

benchmarks/GraphBLAS-sharp.Benchmarks/paket.references

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ FSharp.Core
22
Microsoft.NETFramework.ReferenceAssemblies
33
BenchmarkDotNet
44
MathNet.Numerics.FSharp
5+
MathNet.Numerics.MKL.Win-x64

paket.dependencies

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ nuget FSharpx.Text.StructuredFormat 2.3.0
2121
nuget Brahma.FSharp.OpenCL.WorkflowBuilder 2.0.0-alpha4
2222
nuget BenchmarkDotNet
2323
nuget MathNet.Numerics.FSharp
24+
nuget MathNet.Numerics.MKL.Win-x64 2.5.0
2425

2526
// [ FAKE GROUP ]
2627
group Build

paket.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ NUGET
128128
System.Runtime.Serialization.Primitives (>= 4.3) - restriction: && (< net45) (>= netstandard1.6) (< netstandard2.0)
129129
System.Runtime.Serialization.Xml (>= 4.3) - restriction: && (< net45) (>= netstandard1.6) (< netstandard2.0)
130130
System.Security.Cryptography.Algorithms (>= 4.3.1) - restriction: && (< net45) (>= netstandard1.6) (< netstandard2.0)
131+
MathNet.Numerics.MKL.Win-x64 (2.5)
131132
Microsoft.Bcl.AsyncInterfaces (5.0) - restriction: >= netstandard2.0
132133
System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: || (>= net461) (&& (< netcoreapp2.1) (>= netstandard2.0) (< netstandard2.1))
133134
Microsoft.Build (16.3) - restriction: >= netcoreapp1.0

src/GraphBLAS-sharp/GraphBLAS-sharp.fsproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
12
<Project Sdk="Microsoft.NET.Sdk">
23
<PropertyGroup>
34
<TargetFrameworks>netstandard2.1;net461</TargetFrameworks>
5+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
46
</PropertyGroup>
57
<PropertyGroup Condition="'$(Configuration)'=='Release'">
68
<Optimize>true</Optimize>
@@ -30,7 +32,7 @@
3032
<ItemGroup>
3133
<Content Include="app.config">
3234
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
33-
</Content>
35+
</Content>
3436
</ItemGroup>
3537
<Import Project="..\..\.paket\Paket.Restore.targets" />
36-
</Project>
38+
</Project>

0 commit comments

Comments
 (0)