- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am testing a BLAS example here by trying to create a simple exe with dynamic linking tousing BLAS library. This is my code
program dot_mainreal x(10), y(10), sdot, resinteger n, incx, incy, iexternal sdotn = 5incx = 2incy = 1do i = 1, 10x(i) = 2.0e0y(i) = 1.0e0end dores = sdot (n, x, incx, y, incy)print*, 'SDOT=',resend
In order to do sequential, dynamic linking I specify the following in Config Properties->Linker->Input->Additional Dependencies:
mkl_sequential_dll.lib mkl_core_dll.lib mkl_intel_c_dll.lib
The output I produced ("blasexample.exe") is 931 kb, and I can run the exe without all the mkl libraries presented in the exe folder. I think what I did is static linking, not dynamic linking. What did I do wrong?
Edit:
I tried the following command line ( yes, it's command line not through GUI) , the same problem persists:
ifort blasexample.F90 mkl_intel_c_dll.lib mkl_intel_thread_dll.lib mkl_core_dll.lib libiomp5md.lib
- 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
This is my vfproj file:
- 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
Thanks for your suggestion. After I implement it, the size reduce from 0.9 MB to 80kB. So obviously the library is not fully linked in.
However, in theabsenceof the mkl libraries in the same directory as the exe, I expect the exe couldn't run because of missing dependencies. But from what I found this is not so; the exe can still run even though all the mkl libraries are missing. I tested this on the development machine by copied the exe to other directories.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page