Community
cancel
Showing results for 
Search instead for 
Did you mean: 
bondarev_dmitry
Beginner
112 Views

MKL & C# examples

Hi

I try to compile dgemm example from article "Using Intel MKL in your C# program", but its not work.
Result matrix C is Zero matrix.



Then, when i try to start dgemm.exe, its generated exception "System.DLLNotFoundException: Unable to load DLL 'mkl.dll'". But mkl.dll is in folder...



How to solve this problem?
0 Kudos
4 Replies
Gennady_F_Intel
Moderator
112 Views

Dmitry,
What platform have you tested? What version of MKL was used?
You set MKLROOT?
--Gennady
Gennady_F_Intel
Moderator
112 Views

Dmitry,
look at the result I 've done:
Win7, 64 bit, version MKL -- 10.2 update5
MKL_C#>nmake em64t MKLROOT="C:\APPS\Intel\MKL\10.2.5"
MKL_C#>dgemm.exe
MKL cblas_dgemm example
alpha=1
beta=-1
Matrix A
1 2 3
4 5 6
Matrix B
0 1 0 1
1 0 0 1
1 0 1 0
Initial C
5 1 3 3
11 4 6 9
Resulting C
0 0 0 0
0 0 0 0
TEST PASSED
--Gennady
bondarev_dmitry
Beginner
112 Views

I use Win7, 32, Visual Studio 2010, MKL 10.2.4.032.

Maybe, I misunderstand this example. I think that resultig matrix is multiplication of A & B.

But why I get exception when start exe file?
Vladimir_Koldakov__I
New Contributor III
112 Views

Hello, Dmitry,

Zero matrix is correct result.

The dll,including all dependent dlls, should be 'visible'for the Microsoft .NET CLR.Find(among the C# examples nmake output)the command:

set path=...;%path%

and execute it before start dgemm.exe.

Thanks,
Vladimir

Reply