Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 11/07/2023
Public

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

Document Table of Contents

fopenmp-device-lib

Enables or disables certain device libraries for an OpenMP* target.

Syntax

Linux:

-fopenmp-device-lib=library[,library,...]

-fno-openmp-device-lib=library[,library,...]

Windows:

-fopenmp-device-lib=library[,library,...]

-fno-openmp-device-lib=library[,library,...]

Arguments

library

Possible values are:

libm-fp32

Enables linking to the fp32 device math library.

libm-fp64

Enables linking to the fp64 device math library.

libc

Enables linking to the C library.

all

Enables linking to libraries libm-fp32, libm-fp-64, and libc.

To link more than one library, include a comma between the library names. For example, if you want to link both the libm-fp32 device library and the C library, specify: libm-fp32,libc.

Do not add spaces between library names.

Note that if you specify "all", it supersedes any additional value you may specify.

Default

OFF

Disables linking to device libraries for this target.

Description

This option enables or disables certain device libraries for an OpenMP* target.

If you specify fno-openmp-device-lib=library, linking to the specified library is disabled for the OpenMP* target.

NOTE:

When OpenMP* offloading is enabled, this option only applies to device-specific compilation. Offloading can only be enabled when using ifx.

IDE Equivalent

Visual Studio: Linker > General > Enable linking of the device libraries for OpenMP offload

Linker > General > Disable linking of the device libraries for OpenMP offload

Alternate Options

None