Quantcast
Viewing all articles
Browse latest Browse all 1175

control on math lib to be used under linux

Dear Intel Experts,

I describe here an issue relative to control on math lib to be used by an application under Linux.

Situation:

1. When a compiled fortran code is executed, the computation time is T

2. When this same fortran code is transformed as a dynamic lib of a C++ application, the execution is 5*T.

It was identified that cos() calls in the fortran code were responsible for that performance downgrade:

in configuration 1, it is cos() of lib libimf.so ​that is called.

In configuration 2, is is cos() of lib libm.so.6 that is called

How to keep control on Library to be used in configuration 2? I make you note that there is neither #include <cmath> nor #include <mathimf>  in the C++ code.

Thanks for your help

Best regards,

Gael Couturier

ESI-Group


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>