Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 9/08/2022
Public

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

Document Table of Contents

qmkl-ilp64, Qmkl-ilp64

Tells the compiler to link to the ILP64-specific version of the Intel® oneAPI Math Kernel Library (oneMKL). On Windows systems, you must specify this option at compile time.

Syntax

Linux:

-qmkl-ilp64[=lib]

Windows:

/Qmkl-ilp64[:lib]

Arguments

lib

Indicates which ILP64-specific oneMKL library files should be linked. Possible values are:

parallel

Tells the compiler to link using the threaded libraries in oneMKL. This is the default if the option is specified with no lib.

sequential

Tells the compiler to link using the sequential libraries in oneMKL.

cluster

Tells the compiler to link using the cluster-specific libraries and the sequential libraries in oneMKL.

Default

OFF

The compiler does not link to the oneMKL library.

Description

This option tells the compiler to link to the ILP64-specific version of the Intel® oneAPI Math Kernel Library (oneMKL).

If both option -qmkl-ilp64 (or /Qmkl-ilp64) and -qmkl (or /Qmkl) are specified on the command line, the rightmost specified option takes precedence.

For more information about using oneMKL libraries, see the article titled: Intel® oneAPI Math Kernel Library Link Line Advisor.

Linux

Dynamic linking is the default when you specify -qmkl-ilp64.

On C++ systems, to link with oneMKL statically, you must specify:

-qmkl-ilp64 -static-intel

The driver must add the library names explicitly to the link command. You must use option -qmkl-ilp64 to perform the link to pull in the dependent libraries.

Windows

Static linking is the default when you specify /Qmkl-ilp64. To link with oneMKL dynamically, you must specify:

/Qmkl-ilp64 /MD 

This option adds directives to the compiled code, which the linker then reads without further input from the driver. You do not need to specify a separate link command.

IDE Equivalent

Visual Studio: Intel Libraries for oneAPI > Use ILP64 interfaces

Eclipse: Use Intel® oneAPI Math Kernel Library > Use ILP64 interfaces

Alternate Options

None

See Also