allisterb / compute.net Goto Github PK
View Code? Open in Web Editor NEW.NET bindings for native numerical computing
License: MIT License
.NET bindings for native numerical computing
License: MIT License
Thank you so amazing useful tool!
When I bind the IntelMKL, the below error occurs.
C:\Users\dqm2k\source\repos\Compute.NET>bind mkl --vml --ilp64 -n IntelMKL -o .\Compute.Bindings.IntelMKL -c Vml --file vml.ilp64.cs --root "C:\Program Files (x86)\\IntelSWTools\\compilers_and_libraries_2020.4.311\\windows\\mkl"
16:28:12<01> [INF] Binding library module blas.
16:28:12<01> [INF] Using C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.4.311\windows\mkl as library directory.
16:28:12<01> [INF] Using C:\Users\dqm2k\source\repos\Compute.NET\test as output directory.
16:28:12<01> [INF] Using IntelMKL as library namespace.
16:28:12<01> [INF] Module file is C:\Users\dqm2k\source\repos\Compute.NET\test\blas.cs.
16:28:12<01> [INF] Using Intel64 architecture.
16:28:12<01> [INF] Using default Intel threading library.
16:28:12<01> [INF] Using ILP64 (Int64) array indexing
16:28:12<01> [INF] Creating bindings for BLAS routines...
Process is terminated due to StackOverflowException.
I have confirmed that the include files and libraries are successfully loaded from the MKL root directory.
Do you know any idea to treat this error?
I'm trying to use the SpBlas API but get error
static void Main(string[] args)
{
double[] values_A = { 10, 11, 12, 13, 15, 14, 16, 17, 18, 19 };
int[] columns_A = { 0, 1, 2, 3, 0, 4, 1, 2, 3, 4 };
int[] rowIndex_A1 = { 0, 2, 4, 6, 8, 10 };
int[] rowIndex_A2 = { 2, 4, 6, 8, 10 };
double[] values_B = { 5, 6, 7, 8, 9 };
int[] columns_B = { 0, 1, 2, 3, 4 };
int[] rowIndex_B1 = { 0, 1, 2, 3, 4, 5 };
int[] rowIndex_B2 = { 1, 2, 3, 4, 5 };
var a = new SparseMatrix();
var b = new SparseMatrix();
var res = SpBlas.MklSparseDCreateCsr(a, SparseIndexBaseT.SPARSE_INDEX_BASE_ZERO, 5, 5, ref rowIndex_A1[0], ref rowIndex_A2[0], ref columns_A[0], ref values_A[0]);
res = SpBlas.MklSparseDCreateCsr(b, SparseIndexBaseT.SPARSE_INDEX_BASE_ZERO, 5, 5, ref rowIndex_B1[0], ref rowIndex_B2[0], ref columns_B[0], ref values_B[0]);
var c = new SparseMatrix();
res = SpBlas.MklSparseSpmm(SparseOperationT.SPARSE_OPERATION_NON_TRANSPOSE, a, b, c); // res is IntelMKL.LP64.SparseStatusT.SPARSE_STATUS_NOT_SUPPORTED
res = SpBlas.MklSparseDSetValue(a, 1, 2, 10); // Exception: System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
}
What is wrong here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.