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.

Language-specific UsageOptions 7<strong>Intel</strong>® M<strong>at</strong>h Kernel Library (<strong>Intel</strong>® MKL) basically provides support for Fortran <strong>and</strong> C/C++programming. However, not all function domains support both Fortran <strong>and</strong> C interfaces(see Table A-1). For example, LAPACK has no C interface. Still you can call functionscomprising these domains from C using mixed-language programming.Moreover, even if you want to use LAPACK or BLAS, which basically support Fortran, in theFortran 90 environment, additional effort is initially required to build language-specificinterface libraries <strong>and</strong> modules, being delivered as source code.The chapter mainly focuses on mixed-language programming <strong>and</strong> the use oflanguage-specific interfaces. It exp<strong>and</strong>s upon the use of <strong>Intel</strong> MKL in C languageenvironments for function domains th<strong>at</strong> basically support Fortran as well as explains usageof language-specific interfaces <strong>and</strong>, in particular, Fortran 90 interfaces to LAPACK <strong>and</strong>BLAS. In this connection, compiler-dependent functions are discussed to explain whyFortran 90 modules are supplied as sources. A separ<strong>at</strong>e section guides you through theprocess of running examples of invoking <strong>Intel</strong> MKL functions from Java.Using Language-Specific Interfaces with <strong>Intel</strong>® MKLThe following interface libraries <strong>and</strong> modules may be gener<strong>at</strong>ed as a result of oper<strong>at</strong>ion ofrespective makefiles loc<strong>at</strong>ed in the interfaces directory.Table 7-1Interface libraries <strong>and</strong> modulesFile namelibmkl_blas95.alibmkl_lapack95.alibfftw2xc_intel.alibfftw2xc_gnu.aCommentContains Fortran 90 wrappers for BLAS (BLAS95)Contains Fortran 90 wrappers for LAPACK (LAPACK95)Contains interfaces for FFTW version 2.x (C interface for<strong>Intel</strong>® compiler) to call <strong>Intel</strong> MKL FFTs.Contains interfaces for FFTW version 2.x (C interface forGNU compiler) to call <strong>Intel</strong> MKL FFTs.7-1

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

Saved successfully!

Ooh no, something went wrong!