13.07.2015 Views

Intel(R) - Computational and Systems Biology at MIT

Intel(R) - Computational and Systems Biology at MIT

Intel(R) - Computational and Systems Biology at MIT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Linking Your Applic<strong>at</strong>ionwith <strong>Intel</strong>® M<strong>at</strong>h Kernel5LibraryThis chapter fe<strong>at</strong>ures linking of your applic<strong>at</strong>ions with <strong>Intel</strong>® M<strong>at</strong>h Kernel Library (<strong>Intel</strong>®MKL) for the Linux* OS. The chapter compares st<strong>at</strong>ic <strong>and</strong> dynamic linking models;describes the general link line syntax to be used for linking with <strong>Intel</strong> MKL libraries;provides comprehensive inform<strong>at</strong>ion in a tabular form on the libraries th<strong>at</strong> should be linkedwith your applic<strong>at</strong>ion for your particular pl<strong>at</strong>form <strong>and</strong> function domain; gives linkingexamples. Building of custom shared objects is also discussed.Selecting Between Linkage ModelsYou can link your applic<strong>at</strong>ions with <strong>Intel</strong> MKL libraries st<strong>at</strong>ically, using st<strong>at</strong>ic libraryversions, or dynamically, using shared libraries.St<strong>at</strong>ic LinkingWith st<strong>at</strong>ic linking, all links are resolved <strong>at</strong> link time. Therefore, the behavior of st<strong>at</strong>icallybuilt executables is absolutely predictable, as they do not depend upon a particular versionof the libraries available on the system where the executables run. Such executables mustbehave exactly the same way as was observed during testing. The main disadvantage ofst<strong>at</strong>ic linking is th<strong>at</strong> upgrading st<strong>at</strong>ically linked applic<strong>at</strong>ions to higher library versions istroublesome <strong>and</strong> time-consuming, as you have to relink the entire applic<strong>at</strong>ion. Besides,st<strong>at</strong>ic linking produces large-size executables <strong>and</strong> uses memory inefficiently, since ifseveral executables are linked with the same library, each of them loads it into memoryindependently. However, this is hardly an issue for <strong>Intel</strong> MKL, used mainly for large-sizeproblems. — It m<strong>at</strong>ters only for executables having d<strong>at</strong>a size rel<strong>at</strong>ively small <strong>and</strong>comparable with the size of the executable.5-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!