openmp-link, Qopenmp-link

Controls whether the compiler links to static or dynamic OpenMP run-time libraries.

IDE Equivalent

None

Architectures

IA-32, Intel® 64, IA-64 architectures

Syntax

Linux and Mac OS X:

-openmp-link library

Windows:

/Qopenmp-link:library

Arguments

library

Specifies the OpenMP library to use. Possible values are:

static

Tells the compiler to link to static OpenMP run-time libraries.

dynamic

Tells the compiler to link to dynamic OpenMP run-time libraries.

Default

-openmp-link dynamic or /Qopenmp-link:dynamic

The compiler links to dynamic OpenMP run-time libraries. However, if option static is specified, the compiler links to static OpenMP run-time libraries.

Description

This option controls whether the compiler links to static or dynamic OpenMP run-time libraries.

To link to the static OpenMP run-time library (RTL) and create a purely static executable, you must specify -openmp-link static (Linux and Mac OS X) or /Qopenmp-link:static (Windows). However, we strongly recommend you use the default setting, -openmp-link dynamic (Linux and Mac OS X) or /Qopenmp-link:dynamic (Windows).

Note iconNote

Compiler options -static-intel and -shared-intel (Linux and Mac OS X) have no effect on which OpenMP run-time library is linked.

Alternate Options

None