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

Non parallel code calling a parallelized library

david_sallngc_com
543 Views
Hi!

I have generated a library from a FORTRAN source code that was compiled using OpenMP directives. This library will be used by colleages who do not use OpenMP in their FORTRAN codes.When theycompile their codes, they do not create parallel code. When their code calls my library, will my computations be done with parallel processing even though their project properties has it disabled? Do libraries act independently of the calling program propeties?

Thank you very much for your help.

Sincerely,

David
0 Kudos
2 Replies
TimP
Honored Contributor III
543 Views
MKL threaded library is an example of how it's done. If you leave in the references to the OpenMP library, that library must be linked into each build subsequent to your library. This should work well if there's no threading in the application itself.
0 Kudos
david_sallngc_com
543 Views
Thanks Tim.

David
0 Kudos
Reply