From 50accee218ac1ec20fb3f536315c2f7368e86072 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Mon, 6 Dec 2021 22:34:37 +0100 Subject: [PATCH] Project files: simplify build constants --- Directory.Build.props | 6 +----- src/Numerics.Tests/Numerics.Tests.CUDA.csproj | 2 +- src/Numerics.Tests/Numerics.Tests.MKL.csproj | 2 +- src/Numerics.Tests/Numerics.Tests.OpenBLAS.csproj | 2 +- src/Numerics.Tests/UseLinearAlgebraProvider.cs | 11 ----------- 5 files changed, 4 insertions(+), 19 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 3273ce3b..41c50d6b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -20,14 +20,10 @@ true $(MSBuildThisFileDirectory)build/MathNet.Numerics.snk false - STRONGNAME .Signed - Strong Name Edition This package contains strong-named assemblies for legacy use cases (not recommended). - $(CommonConstants) - - - NATIVE;$(CommonConstants) + STRONGNAME diff --git a/src/Numerics.Tests/Numerics.Tests.CUDA.csproj b/src/Numerics.Tests/Numerics.Tests.CUDA.csproj index 6ff81450..4448f95a 100644 --- a/src/Numerics.Tests/Numerics.Tests.CUDA.csproj +++ b/src/Numerics.Tests/Numerics.Tests.CUDA.csproj @@ -9,7 +9,7 @@ false 5.0.0 alpha02 - NATIVE;CUDA;$(CommonConstants) + CUDA diff --git a/src/Numerics.Tests/Numerics.Tests.MKL.csproj b/src/Numerics.Tests/Numerics.Tests.MKL.csproj index e3ac5fe1..c4d411b8 100644 --- a/src/Numerics.Tests/Numerics.Tests.MKL.csproj +++ b/src/Numerics.Tests/Numerics.Tests.MKL.csproj @@ -9,7 +9,7 @@ false 5.0.0 alpha02 - NATIVE;MKL;$(CommonConstants) + MKL diff --git a/src/Numerics.Tests/Numerics.Tests.OpenBLAS.csproj b/src/Numerics.Tests/Numerics.Tests.OpenBLAS.csproj index 980adced..6c2e75f5 100644 --- a/src/Numerics.Tests/Numerics.Tests.OpenBLAS.csproj +++ b/src/Numerics.Tests/Numerics.Tests.OpenBLAS.csproj @@ -9,7 +9,7 @@ false 5.0.0 alpha02 - NATIVE;OPENBLAS;$(CommonConstants) + OPENBLAS diff --git a/src/Numerics.Tests/UseLinearAlgebraProvider.cs b/src/Numerics.Tests/UseLinearAlgebraProvider.cs index 65a27a04..caf64941 100644 --- a/src/Numerics.Tests/UseLinearAlgebraProvider.cs +++ b/src/Numerics.Tests/UseLinearAlgebraProvider.cs @@ -32,14 +32,6 @@ using System.IO; using NUnit.Framework; using NUnit.Framework.Interfaces; -#if MKL -using MathNet.Numerics.Providers.MKL; -#elif CUDA -using MathNet.Numerics.Providers.CUDA; -#elif OPENBLAS -using MathNet.Numerics.Providers.OpenBLAS; -#endif - namespace MathNet.Numerics.UnitTests { [AttributeUsage(AttributeTargets.Assembly)] @@ -51,13 +43,10 @@ namespace MathNet.Numerics.UnitTests #if MKL Control.NativeProviderPath = Path.GetFullPath(Path.Combine(outDir, @"MKL/Windows/")); Control.UseNativeMKL(); - //MklControl.UseNativeMKL(MklConsistency.AVX, MklPrecision.Double, MklAccuracy.High); #elif CUDA Control.UseNativeCUDA(); - //CudaControl.UseNativeCUDA(); #elif OPENBLAS Control.UseNativeOpenBLAS(); - //OpenBlasControl.UseNativeOpenBLAS(); #else Control.UseManaged(); #endif