- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the user's guide for mkl 10 on chapter5 page 7, it says, "To use threaded Intel MKL, it is highly recommended to compile your code with the /MT option. The compiler driver will pass the option to the linker and the latter will load multi-thread (MT) run-time libraries."
As a background, I'm compiling a static fortran lib and linking that into a c++ dll compiled with visual studio, /MD, and libguide40.dll. What is the benefit to compiling the c++ code with /MT vs /MD?
Thank you,
Jon
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/MT ought to be smaller, perhaps faster,than /MD, but the latter should have better diagnostics, if you are trying to trace events which occur ina Microsoftlibrary. I don't think that comment in the user's guide distinguishes between /MD and /MT; rather, it is meant to warn against mixing non-thread-safe libraries of past Microsoft 32-bit compilers with threaded code.
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