- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi all,
I inherited responsibility for a fortran (IVF) dynamic link project that is part of my Visual Studio solution. I dont know fortran very well.
I have been asked to look at getting MKL to work with this program. MKL is installed. I added the path for the include, library, and executable files. I was not sure which additional dependences were needed in the linker > input section so I left that blank.
Now what do I do? I search the site for an example but could not find anything. I am not sure how I tell the fortran source files to use this new library.
I would appreciate any help to get started.
Thank you,
Eric
Lien copié
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi Eric,
You can refer the following documents:
1. The follow page talk to how to set the compiler environment:
http://support.intel.com/support/performancetools/libraries/mkl/win/sb/cs-017282.htm
2. MKL get stated document: MKLDIRGetting_Started.htm
Section "Linking Your Application with Intel MKL" talks about which library you need to link with your application.
Regards,
Chao
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
In addition,
There is example source in the examples directory of MKL. This might be helpful for seeing how to include MKL headers and modules (depending on what functionality you are using).
-Todd
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi Chao,
Thanks for the response. I believe I have installed and set the appropiate variables in both the shell and Visual Studio.
The documentation shows command line parameters on how to link the libraries to the program. Since I am using Visual Studio to compile I think I need to add the libraries to the project properties page. I am unsure where or how to do that. Can someone help?
I have found the examples Todd mentioned. I tried to add them as a project in Visual Studio but had no success. Can that be done? Is there any VS/ Fortran examples anywhere?
Thanks!
Eric
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
clicking in Studio (from main menu) Project/Properties brings up the Project Property pages. Select Linker/Input and in Additional Dependencies add the libraries you need, using the guidelines in Getting Started (as Chao already mentioned). For example, for cdecl interface for static linking
, LAPACK, and kernel add: mkl_c.lib libguide.lib in it.
As far as LAPACK-95 interfaces go, read carefully notes, as you need to include in your project provided interfaces to F77 routines. After building project you will get warning LNK4078: multiple '_RDATA' sections found with different attributes (40301040), but this is harmless, so just ignore it.
A.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
As recent responses pointed out, you would normally use only cdecl with compilers which support it. mkl_s is provided for compatibility with 32-bit compilers which used that interface, but are no longer maintained.

- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable