Intel® Fortran Compiler

Developer Guide and Reference

ID 767251
Date 10/15/2026
Public
Document Table of Contents

save-offload-code

Dump device code into the user provided directory.

Syntax

Linux:

-save-offload-code=arg

Windows:

/Qsave-offload-code:arg

Arguments

arg

Path to the directory to save the device object files.

Default

OFF

No device object files will be generated.

Description

Dump device code into the user provided directory.

IDE Equivalent

None

Alternate Options

None

Examples

Linux:

clang++ -fsycl -save-offload-code=/path/to/spv syclfile.cpp // .spv files saved into /path/to/spv directory
clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda -save-offload-code=/path/to/ptx syclfile.cpp // .s files saved into /path/to/ptx directory