{"id":23138592,"url":"https://github.com/proxem/blasnet","last_synced_at":"2025-08-17T11:33:16.076Z","repository":{"id":70184736,"uuid":"160223061","full_name":"Proxem/BlasNet","owner":"Proxem","description":"Basic Linear Algebra Subprograms for .Net","archived":false,"fork":false,"pushed_at":"2019-04-23T09:37:38.000Z","size":130,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-05T18:48:04.973Z","etag":null,"topics":["blas","csharp","dotnet","dotnet-core","dotnet-framework","intel-mkl-library","mkl","nuget"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Proxem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-12-03T16:44:23.000Z","updated_at":"2024-05-03T07:44:24.000Z","dependencies_parsed_at":"2023-03-11T08:13:51.257Z","dependency_job_id":null,"html_url":"https://github.com/Proxem/BlasNet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxem%2FBlasNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxem%2FBlasNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxem%2FBlasNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxem%2FBlasNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Proxem","download_url":"https://codeload.github.com/Proxem/BlasNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230121666,"owners_count":18176477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blas","csharp","dotnet","dotnet-core","dotnet-framework","intel-mkl-library","mkl","nuget"],"created_at":"2024-12-17T13:11:17.780Z","updated_at":"2024-12-17T13:11:17.863Z","avatar_url":"https://github.com/Proxem.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BlasNet\nBlasNet is an optimized library for basic linear algebra operations on arrays written in C\\# and developed at [Proxem](https://proxem.com).\n\n## Table of contents\n\n* [Requirements](#requirements)\n   * [Intel MKL](#intel-mkl)    \n* [Nuget Package](#nuget-package)\n* [Contact](#contact) \n* [License](#license)\n\n## Requirements\n\nBlasNet is developed in .Net Standard 2.0 and is compatible with both .Net Framework and .Net Core thus working on Windows and Linux platform.\nFor Mac OS users there shouldn't be any problem but we didn't test extensively.\n\n### Intel MKL\n\nIntel's math kernel library is used as a backend to optimize arrays operations when available. \nIn order to use MKL you must launch the provider in your code. This step depends of your operating system :\n\n#### Windows Users\n\nYou first need to download [Intel's MKL](https://software.intel.com/en-us/mkl/choose-download/windows) libraries for Windows. Check that the folder contains `mkl_rt.dll` which is the main library used by BlasNet.\nTo set the provider to use `mkl_rt.dll` for the low level array operations place the following line at the beginning of your code :\n\n```\nusing BlasNet;\n\npublic namespace Test\n{\n    public static void Main(string[] args)\n    {\n        StartProvider.LaunchMklRt(max, path);\n        // rest of the code;\n    }\n}\n```\n\nwhere ```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`.\n\n#### Linux Users\n\nYou first need to download [Intel's MKL](https://software.intel.com/en-us/mkl) libraries for Linux. Check that the folder contains `libmkl_rt.so` which is the main library used by BlasNet.\nTo 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. \nTo do so, add the path to Intel's libraries by running the following commands : \n\n```\n$  echo \"/path/to/mkl/lib/\" \u003e\u003e /etc/ld.so.conf.d/intel.conf\n$  ldconfig\n```\n\nNow, to set the provider to use `libmkl_rt.so` for the low level operations place the following line at the beginning of your code :\n\n```\nusing BlasNet;\n\npublic namespace Test\n{\n    public static void Main(string[] args)\n    {\n        StartProvider.LaunchMklRt(max);\n        // rest of the code;\n    }\n}\n```\nwhere `max` is the max number of threads used by MKL (-1 to use the max number).\n\n\n## Nuget Package\n\nWe provide a Nuget Package of **BlasNet** to facilitate its use. It's available on [Nuget.org](https://www.nuget.org/packages/Proxem.BlasNet/). \nSymbols are also available to facilitate debugging inside the package.\n\n## Disclaimer\n\nThis is not an official Proxem product.\n\n## Contact information\n\nIf you can't make **BlasNet** work on your computer or if you have any tracks of improvement drop us an e-mail at one of the following address:\n- thp@proxem.com\n- joc@proxem.com\n\n## License\n\nBlasNet is Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.\nSee the NOTICE file distributed with this work for additional information regarding copyright ownership.\nThe 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.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless 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.\nSee the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxem%2Fblasnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproxem%2Fblasnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxem%2Fblasnet/lists"}