Developer Guide and Reference

ID 767251
Date 10/31/2024
Public
Document Table of Contents

ftarget-compile-fast

Tells the compiler to perform less aggressive optimizations to reduce compilation time at the expense of generating less optimal target code. This is an experimental feature.

Syntax

Linux:

-ftarget-compile-fast

Windows:

/ftarget-compile-fast

Arguments

None

Default

OFF

Less aggressive optimizations to reduce compilation time are not performed.

Description

This option tells the compiler to perform less aggressive optimizations to reduce compilation time at the expense of generating less optimal target code. This is an experimental feature.

It may be useful to specify this option in these cases:

  • When you are in a development period and want a fast turnaround time while testing

  • When you are specifying options O2 or O3 for a product with Just-in-Time (JIT) compilation, and both compile-time and execution performance are important

This option is not recommended when you are specifying options O2 or O3 for a product with Ahead-of-Time (AOT) compilation, where long but one-time compilation may be tolerable in order to achieve the best performance.

NOTE:

This compiler option is not recommended if you plan to ship object files as part of a final product.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

None

Examples

The following shows examples of using this option:

Linux

ifx -fiopenmp -fopenmp-targets=spir64 -ftarget-compile-fast foo.F90 -o a.out 

Windows

ifx /Qiopenmp /Qopenmp-targets=spir64 /ftarget-compile-fast foo.F90 /object:a.out