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

ID 767251
Date 3/22/2024
Public
Document Table of Contents

fopenmp-default-allocator, Qopenmp-default-allocator

Tells the compiler that all ALLOCATE statements should be treated as though there were an explicit OpenMP ALLOCATE directive that preceded them. This feature is only available for ifx.

Syntax

Linux:

-fopenmp-default-allocator[=keyword]

Windows:

/Qopenmp-default-allocator[:keyword]

Arguments

keyword

Is an allocation specification. It can be any of the following:

omp_default_mem

Tells the compiler to follow standard allocation behavior. This is the default if no keyword is specified.

omp_high_bw_mem

Tells the compiler to allocate into high-bandwidth memory, if available. If there is no high-bandwidth memory, default memory will be used.

omp_target_shared_mem

Tells the compiler to allocate into memory shared between CPU/GPU.

Default

OFF

If this option is not specified, the compiler follows standard allocation behavior for ALLOCATE statements.

Description

This option tells the compiler that all Fortran ALLOCATE statements should be treated as though there were an explicit OpenMP ALLOCATE directive (!$OMP ALLOCATE) that preceded them. It provides an allocation shortcut.

Only keyword omp_target_shared_mem requires you to also specify an OpenMP-enabling option, such as [q or Q]openmp. The other possible keywords do not require an OpenMP-enabling option.

CAUTION:

When allocating large amounts of memory into target-shared memory, you may experience running-out-of-memory issues.

IDE Equivalent

None

Alternate Options

None