インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス
The following tables list available compiler directives.
Each general directive name is preceded by the prefix cDIR$ (or cDEC$), where c is one of the following: !, C (or c), or *; for example, !DIR$ ALIAS).
Each OFFLOAD directive name is preceded by the prefix cDIR$, where c is one of the following: !, C (or c), or *; for example, !DIR$ OFFLOAD_TRANSFER.
Each OpenMP* Fortran directive name is preceded by the prefix c$OMP, where c is one of the following: !, C (or c), or *; for example, !$OMP ATOMIC.
Compiler directives are specially formatted comments in the source file which provide information to the compiler. Some directives, such as line length or conditional compilation directives provide the compiler information which is used in interpreting the source file. Other directives, such as optimization directives provide hints or suggestions to the compiler, which, in some cases, may be ignored or overridden by the compiler based on the heuristics of the optimizer and/or code generator. If the directive is ignored by the compiler, no diagnostic message is issued.
You do not need to specify a compiler option to enable general directives.
Some directives may perform differently on Intel® microprocessors than on non-Intel microprocessors.
Name |
Description |
---|---|
Specifies an alternate external name to be used when referring to an external subprogram. |
|
Provides heuristic information to the compiler optimizer. |
|
Specifies that an entity in memory is aligned. |
|
Applies attributes to variables and procedures. |
|
Enables loop blocking for the immediately following nested DO loops. |
|
Generates warning messages for undeclared variables. |
|
Creates a variable whose existence can be tested during conditional compilation. |
|
Suggests a location at which a DO loop may be split. |
|
Marks the beginning of an alternative conditional-compilation block to an IF directive construct. |
|
Marks the beginning of an alternative conditional-compilation block to an IF directive construct. |
|
Marks the end of a conditional-compilation block. |
|
Sets fixed-form line length. This directive has no effect on freeform code. |
|
Tells the compiler to allow generation of fused multiply-add (FMA) instructions, also known as floating-point contractions. |
|
Specifies that a routine should be inlined whenever the compiler can do so. |
|
Uses freeform format for source code. |
|
Specifies an identifier for an object module. |
|
Marks the beginning of a conditional-compilation block. |
|
Marks the beginning of a conditional-compilation block. |
|
Specifies that the routines can be inlined. |
|
Selects default integer size. |
|
Assists the compiler's dependence analysis of iterative DO loops. |
|
Specifies the typical trip loop count for a DO loop; this assists the optimizer. |
|
Sends a character string to the standard output device. |
|
Disables loop blocking for the immediately following nested DO loops. |
|
(Default) Turns off warning messages for undeclared variables. |
|
Disables the generation of FMA instructions. |
|
(Default) Uses standard FORTRAN 77 code formatting column rules. |
|
Prevents a loop from fusing with adjacent loops. |
|
Specifies that a routine should not be inlined. |
|
Disables auto-parallelization for an immediately following DO loop. |
|
Disables optimizations for the program unit. |
|
Disables a data prefetch from memory. |
|
(Default) Disables a previous STRICT directive. |
|
Disables the unrolling of a DO loop. |
|
Disables loop unrolling and jamming. |
|
Disables vectorization of a DO loop. |
|
Specifies a library search path in an object file. |
|
Enables optimizations for the program unit. |
|
Controls whether fields in records and data items in common blocks are naturally aligned or packed on arbitrary byte boundaries. |
|
Specifies the memory alignment of derived-type items. |
|
Helps auto-parallelization by assisting the compiler's dependence analysis of an immediately following DO loop. |
|
Hints to the compiler to prefetch data from memory. |
|
Modifies certain characteristics of a common block. |
|
Selects default real size. |
|
Requires and controls SIMD vectorization of loops. |
|
Disables Intel® Fortran features not in the language standard specified on the command line. |
|
Removes a symbolic variable name created with the DEFINE directive. |
|
Tells the compiler's optimizer how many times to unroll a DO loop. |
|
Enables loop unrolling and jamming. |
|
Overrides default heuristics for vectorization of DO loops. |
Name |
Description |
---|---|
Enables statements to execute on the target. |
|
Enables a group of statements to execute on the target. |
|
Initiates asynchronous data transfer, or initiates and completes synchronous data transfer. |
|
Specifies a wait for a previously initiated asynchronous activity. |
OpenMP directives are specially formatted Fortran comment lines embedded in the source file that provide the compiler with hints and suggestions for parallelization, optimization, vectorization and offloading code to accelerator hardware. The compiler uses the information specified in the directives with compiler heuristic algorithms to generate more efficient code. At times, these heuristics may choose to ignore or override the information provided by a directive. If the directive is ignored by the compiler, no diagnostic message is issued.
To use the following directives, you must specify compiler option [q or Q]openmp. For more information, refer to the option description in the Compiler Options reference.
Name |
Description |
---|---|
Specifies that a specific memory location is to be updated atomically. |
|
Synchronizes all the threads in a team. |
|
Requests cancellation of the innermost enclosing region of the type specified, and causes the encountering implicit or explicit task to proceed to the end of the canceled construct. |
|
Defines a point at which implicit or explicit tasks check to see if cancellation has been requested for the innermost enclosing region of the type specified. |
|
Restricts access for a block of code to only one thread at a time. |
|
Declares a user defined reduction for one or more types. |
|
Generates a SIMD procedure. |
|
Specifies that named variables, common blocks, functions, and subroutines are mapped to a device. |
|
Specifies that loop iterations will be executed by thread teams in the context of their implicit tasks. |
|
Specifies a loop that can be executed in parallel by multiple threads that are members of multiple teams. |
|
Specifies a loop that will be executed in parallel by multiple threads that are members of multiple teams. It will be executed concurrently using SIMD instructions. |
|
Specifies a loop that will be distributed across the master threads of the teams region. It will be executed concurrently using SIMD instructions. |
|
Specifies that the iterations of the immediately following DO loop must be executed in parallel. |
|
Specifies a loop that can be executed concurrently using SIMD instructions. |
|
Specifies synchronization points where the implementation must have a consistent view of memory. |
|
Specifies a block of code to be executed by the master thread of the team. |
|
Specifies a block of code to be executed sequentially. |
|
Defines a parallel region. |
|
Defines a parallel region that contains a single DO directive. |
|
Specifies a loop that can be executed concurrently using SIMD instructions. It provides a shortcut for specifying a PARALLEL construct containing one SIMD loop construct and no other statement. |
|
Defines a parallel region that contains SECTIONS directives. |
|
Defines a parallel region that contains a single WORKSHARE directive. |
|
Appears within a SECTIONS directive construct to indicate a block (section) of code. It is optional for the first block of code within the SECTIONS directive construct. |
|
Specifies a block of code to be divided among threads in a team (a worksharing area). |
|
Requires and controls SIMD vectorization of loops. |
|
Specifies a block of code to be executed by only one thread in a team. |
|
Creates a device data environment and executes the construct on the same device. |
|
Creates a device data environment for the extent of the region. |
|
Specifies that variables are mapped to a device data environment. |
|
Specifies that variables are unmapped from a device data environment. |
|
Creates a device data environment in a parallel region and executes the construct on that device. This directive only applies when targeting Intel® Xeon Phi™ products. |
|
Provides an abbreviated way to specify a TARGET directive containing a PARALLEL DO directive and no other statements. |
|
Specifies a TARGET construct that contains a PARALLEL DO SIMD construct and no other statement. |
|
Specifies a TARGET construct that contains a SIMD construct and no other statement. |
|
Creates a device data environment and executes the construct on the same device. It also creates a league of thread teams with the master thread in each team executing the structured block. This directive only applies when targeting Intel® Xeon Phi™ products. |
|
Creates a device data environment and executes the construct on the same device. It also specifies that loop iterations will be shared among the master threads of all thread teams in a league created by a TEAMS construct. This directive only applies when targeting Intel® Xeon Phi™ products. |
|
Creates a device data environment and then executes the construct on that device. It also specifies a loop that can be executed in parallel by multiple threads that are members of multiple teams created by a TEAMS construct. This directive only applies when targeting Intel® Xeon Phi™ products. |
|
Creates a device data environment and then executes the construct on that device. It also specifies a loop that can be executed in parallel by multiple threads that are members of multiple teams created by a TEAMS construct. The loop will be distributed across the teams, which will be executed concurrently using SIMD instructions. This directive only applies when targeting Intel® Xeon Phi™ products. |
|
Creates a device data environment and executes the construct on the same device. It also specifies that loop iterations will be shared among the master threads of all thread teams in a league created by a teams construct. It will be executed concurrently using SIMD instructions. This directive only applies when targeting Intel® Xeon Phi™ products. |
|
Makes the list items in the device data environment consistent with their corresponding original list items. |
|
Defines a task region. |
|
Specifies a wait for the completion of all child tasks of the current task and all of their descendant tasks. |
|
Specifies that the iterations of one or more associated DO loops should be executed in parallel using OpenMP* tasks. The iterations are distributed across tasks that are created by the construct and scheduled to be executed. |
|
Specifies a loop that can be executed concurrently using SIMD instructions and that those iterations will also be executed in parallel using OpenMP* tasks. |
|
Specifies a wait on the completion of child tasks generated since the beginning of the current task. |
|
Specifies that the current task can be suspended in favor of execution of a different task. |
|
Creates a league of thread teams to execute a structured block in the master thread of each team. It also specifies that loop iterations will be shared among the master threads of all thread teams in a league created by a TEAMS construct. |
|
Creates a league of thread teams to execute a structured block in the master thread of each team. It also specifies a loop that can be executed in parallel by multiple threads that are members of multiple teams. |
|
Creates a league of thread teams to execute a structured block in the master thread of each team. It also specifies a loop that can be executed in parallel by multiple threads that are members of multiple teams. The loop will be distributed across the master threads of the teams region, which will be executed concurrently using SIMD instructions. |
|
Creates a league of thread teams to execute the structured block in the master thread of each team. It also specifies a loop that will be distributed across the master threads of the teams region. The loop will be executed concurrently using SIMD instructions. |
|
Makes named common blocks private to a thread but global within the thread. |
|
Divides the work of executing a block of statements or constructs into separate units. |
Optimization Notice |
---|
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice. Notice revision #20110804 |