Skip to content

Commit

Permalink
Release v5.0.0-alpha12
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrnet committed Feb 27, 2022
1 parent d78c53e commit d6d8164
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 14 deletions.
2 changes: 1 addition & 1 deletion RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 5.0.0-alpha11 - 2022-02-27
### 5.0.0-alpha12 - 2022-02-27
* COMPATIBILITY: net5.0, net48 better supported with explicit builds
* COMPATIBILITY: netstandard1.x, net40, net45 no longer supported
* BREAKING: drop all which was marked as obsolete
Expand Down
2 changes: 1 addition & 1 deletion src/Data.Matlab/Data.Matlab.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>MathNet.Numerics.Data.Matlab</PackageId>
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Data.Matlab.Signed</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionSuffix>alpha11</VersionSuffix>
<VersionSuffix>alpha12</VersionSuffix>
<Title>Math.NET Numerics - MATLAB Data I/O Extensions$(TitleSuffix)</Title>
<Description>MathWorks MATLAB Data Input/Output Extensions for Math.NET Numerics, the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds
Expand Down
2 changes: 1 addition & 1 deletion src/Data.Text/Data.Text.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>MathNet.Numerics.Data.Text</PackageId>
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Data.Text.Signed</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionSuffix>alpha11</VersionSuffix>
<VersionSuffix>alpha12</VersionSuffix>
<Title>Math.NET Numerics - Text Data I/O Extensions$(TitleSuffix)</Title>
<Description>Text Data Input/Output Extensions for Math.NET Numerics, the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds
Expand Down
2 changes: 1 addition & 1 deletion src/FSharp/FSharp.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>MathNet.Numerics.FSharp</PackageId>
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.FSharp.Signed</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionSuffix>alpha11</VersionSuffix>
<VersionSuffix>alpha12</VersionSuffix>
<Title>Math.NET Numerics for F#$(TitleSuffix)</Title>
<Description>F# Modules for Math.NET Numerics, the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Supports .NET 5.0 or higher, .NET Standard 2.0 and .NET Framework 4.6.1 or higher, on Windows, Linux and Mac.$(DescriptionSuffix)</Description>
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds
Expand Down
2 changes: 1 addition & 1 deletion src/Numerics/Numerics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>MathNet.Numerics</PackageId>
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Signed</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionSuffix>alpha11</VersionSuffix>
<VersionSuffix>alpha12</VersionSuffix>
<Title>Math.NET Numerics$(TitleSuffix)</Title>
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Supports .NET 5.0 or higher, .NET Standard 2.0 and .NET Framework 4.6.1 or higher, on Windows, Linux and Mac.$(DescriptionSuffix)</Description>
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds
Expand Down
2 changes: 1 addition & 1 deletion src/Providers.CUDA/Providers.CUDA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>MathNet.Numerics.Providers.CUDA</PackageId>
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Providers.CUDA.Signed</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionSuffix>alpha11</VersionSuffix>
<VersionSuffix>alpha12</VersionSuffix>
<Title>Math.NET Numerics CUDA Provider$(TitleSuffix)</Title>
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds
Expand Down
49 changes: 43 additions & 6 deletions src/Providers.MKL/NativeProviderLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ internal static bool TryLoad(string fileName, string hintPath)
return true;
}

if (!IsWindows && fileName.StartsWith("lib") && TryLoadDirect(fileName.Substring(3)))
{
return true;
}

// If we have hint path provided by the user, look there next
if (hintPath != null && TryLoadFromDirectory(fileName, hintPath))
{
Expand Down Expand Up @@ -297,10 +302,26 @@ static bool TryLoadDirect(string fileName)
}

#if NET5_0_OR_GREATER
return NativeLibrary.TryLoad(fileName, out libraryHandle);
try
{
return NativeLibrary.TryLoad(fileName, out libraryHandle);
}
catch
{
return false;
}
#else
// If successful this will return a handle to the library
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fileName) : WindowsLoader.LoadLibrary(fileName);
try
{
// If successful this will return a handle to the library
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fileName) : WindowsLoader.LoadLibrary(fileName);
}
catch (Exception e)
{
LastException = e;
return false;
}

if (libraryHandle == IntPtr.Zero)
{
int lastError = Marshal.GetLastWin32Error();
Expand Down Expand Up @@ -340,10 +361,26 @@ static bool TryLoadFile(string directory, string relativePath, string fileName)
}

#if NET5_0_OR_GREATER
return NativeLibrary.TryLoad(fullPath, out libraryHandle);
try
{
return NativeLibrary.TryLoad(fullPath, out libraryHandle);
}
catch
{
return false;
}
#else
// If successful this will return a handle to the library
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fullPath) : WindowsLoader.LoadLibrary(fullPath);
try
{
// If successful this will return a handle to the library
libraryHandle = IsUnix ? UnixLoader.LoadLibrary(fullPath) : WindowsLoader.LoadLibrary(fullPath);
}
catch (Exception e)
{
LastException = e;
return false;
}

if (libraryHandle == IntPtr.Zero)
{
int lastError = Marshal.GetLastWin32Error();
Expand Down
2 changes: 1 addition & 1 deletion src/Providers.MKL/Providers.MKL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>MathNet.Numerics.Providers.MKL</PackageId>
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Providers.MKL.Signed</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionSuffix>alpha11</VersionSuffix>
<VersionSuffix>alpha12</VersionSuffix>
<Title>Math.NET Numerics MKL Provider$(TitleSuffix)</Title>
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds
Expand Down
2 changes: 1 addition & 1 deletion src/Providers.OpenBLAS/Providers.OpenBLAS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>MathNet.Numerics.Providers.OpenBLAS</PackageId>
<PackageId Condition="'$(StrongName)'=='True'">MathNet.Numerics.Providers.OpenBLAS.Signed</PackageId>
<VersionPrefix>5.0.0</VersionPrefix>
<VersionSuffix>alpha11</VersionSuffix>
<VersionSuffix>alpha12</VersionSuffix>
<Title>Math.NET Numerics OpenBLAS Provider$(TitleSuffix)</Title>
<Description>Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use.$(DescriptionSuffix)</Description>
<PackageReleaseNotes>COMPATIBILITY: net5.0, net48 better supported with explicit builds
Expand Down

0 comments on commit d6d8164

Please sign in to comment.