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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Working with <strong>Intel</strong>® M<strong>at</strong>h Kernel Library Cluster Software 9OMP_NUM_THREADS=1; export OMP_NUM_THREADSIt is possible to run multiple CPUs per node using MPICH, but the MPICH must be built toallow it. Be aware th<strong>at</strong> certain MPICH applic<strong>at</strong>ions may not work perfectly in a threadedenvironment (see the Known Limit<strong>at</strong>ions section in the Release Notes). The safest thing formultiple CPUs, although not necessarily the fastest, is to run one MPI process perprocessor with OMP_NUM_THREADS set to one. Always verify th<strong>at</strong> the combin<strong>at</strong>ion withOMP_NUM_THREADS=1 works correctly.Using Shared LibrariesAll needed shared libraries must be visible on all the nodes <strong>at</strong> run time. One way toaccomplish this is to point these libraries by the LD_LIBRARY_PATH environment variable inthe .bashrc file. If <strong>Intel</strong> MKL is installed only on one node, you should link st<strong>at</strong>ically whenbuilding your <strong>Intel</strong> MKL applic<strong>at</strong>ions.The <strong>Intel</strong>® compilers or GNU compilers can be used to compile a program th<strong>at</strong> uses <strong>Intel</strong>MKL. However, make certain th<strong>at</strong> MPI implement<strong>at</strong>ion <strong>and</strong> compiler m<strong>at</strong>ch up correctly.ScaLAPACK TestsTo build NetLib ScaLAPACK tests for IA-32, IA-64, or <strong>Intel</strong>® 64 architectures, addlibmkl_scalapack_core.a to your link comm<strong>and</strong>.Examples for Linking with ScaLAPACK <strong>and</strong> Cluster FFTFor inform<strong>at</strong>ion on detailed MKL structure of the architecture-specific directories of thecluster libraries, see section Directory Structure in Detail in Chapter 3.Examples for C ModuleSuppose the following conditions are met:• MPICH 1.2.5 or higher is installed in /opt/mpich,• <strong>Intel</strong>® MKL 10.0 is installed in /opt/intel/mkl/10.0.xxx, where xxx is the <strong>Intel</strong>MKL package number, for example, /opt/intel/mkl/10.0.039.• You use the <strong>Intel</strong>® C Compiler 8.1 or higher <strong>and</strong> the main module is in C.9-3

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

Saved successfully!

Ooh no, something went wrong!