Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

a couple of question from a novice

nak52
Beginner
373 Views
Hello,

I just started using the new version of IMSL (and the new visual studio) and have a couple of questions:

1. the new feature to me is that there are several libraries (static, dynamic and some others). to use them, i need to include one of the 6 options on those libraries in my main code. how can i know if i need to use static or dynamic one? so far in my application both libraries work, but i am still not sure how can i give the preference to one of them.

2. can i link imsl to the visual studio once and for all? so far i could link it through project properties for each project separately. but i would like it automatically be included for any of my projects.

thanks!
0 Kudos
1 Reply
Steven_L_Intel1
Employee
373 Views

There are four sets of libraries with combinations of static vs. shared, HPC (uses Intel MKL) or non-HPC. Typically I recommend using the static or shared based on how you link your own application. If you choose the static libraries and do not also enable OpenMP in your application, you will need to add the line:

!DEC$ OBJCOMMENT LIB:'libiomp5md.lib'

to the source after the INCLUDE of 'link_fnl_static.h'. The INCLUDE is how best to specify which set of libraries you want.

I'm not sure I understand the second question. You do need to set up the INCLUDE and LIBRARY paths for IMSL in the Visual Studio Tools > Options > Intel Visual Fortran > Compilers page. This will apply to all your projects until you install a new version of the compiler. Please see Installing and Using the IMSL Libraries for more details.
0 Kudos
Reply