- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Previously, there was an issue with the VML - i.e. not being able to build user/custom dll with VML with static linking.
Is this issue still present in 9.1 ?
I am trying to build a dll which requires the optimization solver and the VML. Turns out, the optimization solver requires static linking, but then, ALL my routines that call VML fail.
If I comment out the optimization solver calls and link dynamically, the VML calls work (the optimization calls dont work, ofcourse).
Any help is appreciated ?
Thank you.
vikrantca
Previously, there was an issue with the VML - i.e. not being able to build user/custom dll with VML with static linking.
Is this issue still present in 9.1 ?
I am trying to build a dll which requires the optimization solver and the VML. Turns out, the optimization solver requires static linking, but then, ALL my routines that call VML fail.
If I comment out the optimization solver calls and link dynamically, the VML calls work (the optimization calls dont work, ofcourse).
Any help is appreciated ?
Thank you.
vikrantca
Link Copied
- « Previous
-
- 1
- 2
- Next »
25 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oops, I don't have the source code, how can I modify the header file and recompile the library? Fortunately I have done successfully with the second way in VS2005, but the DLL is in CDECL calling convention. I still need the STDCALL version, dear Andrey.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
project -> properties -> c/c++ -> preprocessor
put MKL_VML_STDCALL to the "preprocessor definitions" field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot! Very simple, right? I was so confused :-P
Thank you so much! I'll return with the Borland VML HowTo if I succeed!
Have a nice weekend!
Thank you so much! I'll return with the Borland VML HowTo if I succeed!
Have a nice weekend!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK. I found out the way to use MKL in Borland, using DLLs. Here's the progress:
Have a nice day!
- Building the custom DLL using MKL's tool. Run this command line in the directory <%MKL_ROOT%>9.1.027 oolsuilder: You'll get a file named mkl_vml.dll - This file will be used at run-time.
nmakeia32interface=cdeclname=mkl_vmlexport=vml_vsl_cdecl_list
- Using IMPLIB utility as usual to import the lib for using at compile-time:
IMPLIB-a-f-cmkl_vml.libmkl_vml.dll
- Create a console application in Borland to test. Save this project to a specific directory.
- The main function can be copied as <%MKL_ROOT%>9.1.027examplesvmlcsourcevdsin.c
Notice, vssin using float array, vdsin using double, vzsin and vcsin using MKL_Complex type. - Alt+F7
to access Project Setting. [C/C++ Compiler] -> [Path and defines]
add the include dir to [Include search path], e.g. c:Program
FilesIntelMKL9.1.027include
- Compile app now to let
it create the output folder. Copy mkl_vml.dll to that output folder,
copy mkl_vml.lib to the project folder.
- Right click at the project, [Add...] to add this lib file
- Run the project to test
Have a nice day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for HowTo! :-)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »