- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First of all you should need to include only mkl.h as it includes all the other include files.
Can you create a small example showing the issue in which one routine is called that has a character in the parameter list? We will look at that and try to solve the issue. All of our LAPACK examples are Fortran.
On the other hand, can you call BLAS functions such as dgemm via the cblas interface? If you can then the issue is just how to handle the characters in your program.
Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Here is the example :
The appropriate headers are included. The first call to lapack routine dgetrf works just fine. The call to dgetrs doesnt work.
Also note that the same piece of code works fine with MS VC ++ 6.0, i.e. both functions dgetrf and dgetrs work fine.
After I copy it to MS VC++.NET (with managed extensions) it doesnt work anymore and crashes at the second function call.
Int32 CBLAS::Test()
{
double
*a = new double[4];a[0] = 4.0000063240007506;
a[1] = 6.0000000000099609;
a[2] = 10.000015811350039;
a[3] = 2.0000000000033205;
int
m = 2, n = 2;int
lda = 2;int
*ipiv = new int[2];int
info;DGETRF(&m,&n, a,&lda,ipiv,&info);
double
*b = new double[2];b[0] = 56.0;
b[1] = 13.0;
char
trans = 'N'; int ldb = 2, nrhs = 1;DGETRS(&trans, &n,&nrhs, a, &lda,ipiv, b, &ldb,&info);
return(0);}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have investigate this problem. The problem in the libguide (OMP). The very simple solution is using mkl_c_dll.lib insteadof mkl_c.lib.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page