Developer Guide,

  • ,
  • 2020 Update 2
  • 07/16/2020
  • Public Content,
  • Download as PDF

Building with Intel® SDK for OpenCL™ Applications - Offline Compiler Command-Line Interface

Intel® SDK for OpenCL™ Applications Developer Guide
The Intel® SDK for OpenCL™ Applications provides an offline compiler command-line interface. The tool supports Intel® processors and Intel® Graphics, and provides full offline OpenCL language compilation, which includes:
  • Creating executable Intermediate Representation (IR) from source code
  • Creating compiled object from source code
  • Creating executable IR or library from object IR and libraries
The command-line tool is located in
under the
folder, depending on OS.
FPGA support was removed from the Intel® SDK for OpenCL™ Offline Compiler. If your workflows require this functionality, please use Intel® SDK for OpenCL™ Applications 2020 Update 1, or Intel® FPGA SDK for OpenCL™.
To use the offline compiler command-line interface:
  1. Start the command-line.
  2. Type
    to run the 64-bit version
  3. Type the run parameters in the following sequence:
ioc<version> -cmd=<command> -<argument> -<options>
The offline compiler supports the following commands:
Creates executable IR from source code. Default command in case nothing is specified.
Creates compiled object IR from source code.
Creates executable IR or library from object IR and libraries.
The offline compiler supports the following arguments:
Builds OpenCL code from the
file. Use the
argument with the
Links comma-separated binary files. Use with the
Shows the tool version.
Shows help menu, containing the list of available commands, arguments, and options.
The offline compiler supports the following options:
Option Use
Selects target device type:
  • cpu
    - Intel CPU device, which is
  • gpu
    - Intel Graphics device
Set target operating system if it is different from current. The command is supported only in 32-bit version of the tool.
Selects target instruction set architecture. Available on CPU device only. The following instruction set architectures are available:
  • sse42
    - Streaming SIMD Extensions 4.2
  • avx
    - Intel Advanced Vector Extensions (Intel AVX)
  • avx2
    - Intel Advanced Vector Extensions 2 (Intel AVX2)
Writes build log into the
. When this option is specified, the build log does not appear in the command-line.
Generates LLVM code.
Generates intermediate representation binary.
Generates a 32-bit SPIR-V binary.
Generates a 64-bit SPIR-V binary.
Generates 32-bit SPIR-V code.
Generates 64-bit SPIR-V code.
Adds comma-separated build options.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at