openmp-link, Qopenmp-link

Controls whether the compiler links to static or dynamic OpenMP run-time libraries. This is a deprecated option.

IDE Equivalent

None

Architectures

IA-32, Intel® 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. Note that static OpenMP libraries are deprecated.

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 Linux* OS 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.

Note iconNote

On Linux systems, -openmp-link=dynamic cannot be used in conjunction with option -static. If you try to specify both options together, an error will be displayed.

Alternate Options

None


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.