Proxem.BlasNet
1.5.0
dotnet add package Proxem.BlasNet --version 1.5.0
NuGet\Install-Package Proxem.BlasNet -Version 1.5.0
<PackageReference Include="Proxem.BlasNet" Version="1.5.0" />
paket add Proxem.BlasNet --version 1.5.0
#r "nuget: Proxem.BlasNet, 1.5.0"
// Install Proxem.BlasNet as a Cake Addin
#addin nuget:?package=Proxem.BlasNet&version=1.5.0
// Install Proxem.BlasNet as a Cake Tool
#tool nuget:?package=Proxem.BlasNet&version=1.5.0
BlasNet
BlasNet is an optimized library for basic linear algebra operations on arrays written in C# and developped at Proxem.
Table of contents
Requirements
BlasNet was developped in .Net Standard 2.0 and is compatible with both .Net Framwork and .Net Core thus works on Windows and Linux platform. For Mac OS users there shouldn't be any problem but we didn't test extensively.
Intel MKL
Intel's math kernel library is used as a backend to optimize arrays operations when available. In order to use MKL you must launch the provider in your code. This step depends of your operating system :
Windows Users
You first need to download Intel's MKL libraries for Windows. Check that the folder contains mkl_rt.dll
which is the main library used by BlasNet.
To set the provider to use mkl_rt.dll
for the low level array operations place the following line at the begining of your code :
using BlasNet;
public namespace Test
{
public static void Main(string[] args)
{
StartProvider.LaunchMklRt(max, path);
// rest of the code;
}
}
where max
is the max number of threads used by MKL (-1 to use the max number) and path
is the path to mkl_rt.dll
.
Linux Users
You first need to download Intel's MKL libraries for Linux. Check that the folder contains libmkl_rt.so
which is the main library used by BlasNet.
To set the provider to use libmkl_rt.so
for the low level array you first need to make the libraries visible through the LD_LIBRARY_PATH
variable.
To do so, add the path to Intel's libraries by running the following commands :
$ echo "/path/to/mkl/lib/" >> /etc/ld.so.conf.d/intel.conf
$ ldconfig
Now, to set the provider to use libmkl_rt.so
for the low level operations place the following line at the begining of your code :
using BlasNet;
public namespace Test
{
public static void Main(string[] args)
{
StartProvider.LaunchMklRt(max);
// rest of the code;
}
}
where max
is the max number of threads used by MKL (-1 to use the max number).
Github
The source code of BlasNet is open and you can find our github project here
Contact
If you can't make BlasNet works on your computer or if you have any tracks of improvement drop us an e-mail at one of the following address:
- thp@proxem.com
- joc@proxem.com
License
BlasNet is Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|