Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

MKL problems when creating dll for Labview

loscermos
Beginner
1,022 Views

hi,

I have following problem

I'm trying to create a .dll containing Lapack functions from IMKL undeer VC++ 6 for Labview 7.1

I'm able to compile/create dll without any error but when using for some functions from LAPACK I'am recieving an error mesage when connceting dll to .vi saying that he couldn't find libiomp5md.dll.

For exaple when using in C++ coce func:

dgeqr2( &m, &n, a, &lda, b, work, &info ); Labview has no problems but for

dgeqp3( &m, &n, a, &lda, jpvt, tau, work, &lwork, &info ); or dgels()... I'am recieving the error code

in project I'm using following lib. as External dependencies:

mkl_intel_c.lib

mkl_intel_thread.lib

mkl_core.lib

libiomp5md.lib

Thanks for Help

Peter

0 Kudos
2 Replies
Vladimir_Lunev
New Contributor I
1,022 Views
Quoting - loscermos

hi,

I have following problem

I'm trying to create a .dll containing Lapack functions from IMKL undeer VC++ 6 for Labview 7.1

I'm able to compile/create dll without any error but when using for some functions from LAPACK I'am recieving an error mesage when connceting dll to .vi saying that he couldn't find libiomp5md.dll.

For exaple when using in C++ coce func:

dgeqr2( &m, &n, a, &lda, b, work, &info ); Labview has no problems but for

dgeqp3( &m, &n, a, &lda, jpvt, tau, work, &lwork, &info ); or dgels()... I'am recieving the error code

in project I'm using following lib. as External dependencies:

mkl_intel_c.lib

mkl_intel_thread.lib

mkl_core.lib

libiomp5md.lib

Thanks for Help

Peter

Hello Peter,
As far as I see, DLL was successfully built but you have a problem at runtime: the system couldn't find libiomp5md.dll when you run your application.
Please check the presence of the directory ia32bin in the environment variable PATH. MS Visual Studio has the suitable control to add the directory to PATH in your project.
Note, some MKL functions require libiomp5md.dll but others do not require. Therefore Labview has no problem with dgeqr2, but system is reporting the error when you make a call to dgeqp3.
-Vladimir

0 Kudos
loscermos
Beginner
1,022 Views
Hello Peter,
As far as I see, DLL was successfully built but you have a problem at runtime: the system couldn't find libiomp5md.dll when you run your application.
Please check the presence of the directory ia32bin in the environment variable PATH. MS Visual Studio has the suitable control to add the directory to PATH in your project.
Note, some MKL functions require libiomp5md.dll but others do not require. Therefore Labview has no problem with dgeqr2, but system is reporting the error when you make a call to dgeqp3.
-Vladimir

Thanks, it worked:) (added ia32bin in windows env. variable)

Peter

0 Kudos
Reply