Developer Guide

Developer Guide for Intel® oneAPI Math Kernel Library Windows*

ID 766692
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Examples for Linking a C Application

These examples illustrate linking of an application under the following conditions:

To set the Intel MPI environment, you must run the <path to Intel MPI binaries>\vars.bat script.

To link with ScaLAPACK for a cluster of Intel® 64 architecture based systems, set the environment variable and use the link line as follows:

set lib=<mkl directory>\lib\intel64_win;%lib%

icl <user files to link> mkl_scalapack_lp64.lib blacs_intelmpi_lp64.lib mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib impi.lib bufferoverflowu.lib

To link with Cluster FFT for a cluster of Intel® 64 architecture based systems, set the environment variable and use the link line as follows:

set lib=<mkl directory>\lib\intel64_win;%lib%

icl <user files to link> mkl_cdft_core.lib mkl_blacs_intelmpi_lp64.lib mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib impi.lib bufferoverflowu.lib

To link with Cluster Sparse Solver for a cluster of Intel® 64 architecture based systems, set the environment variable and use the link line as follows:

set lib=<mkl directory>\lib\intel64_win;%lib%

icl <user files to link> mkl_blacs_intelmpi_lp64.lib mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib impi.lib bufferoverflowu.lib