Intel® oneAPI DPC++/C++ Compiler

Developer Guide and Reference

ID 767253
Date 3/31/2025
Public
Document Table of Contents

Ccache*

Ccache* is a compiler cache tool. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. One common use case is in CI/CD systems. Visit the Ccache download page for the latest version.

Usage

Ccache can be used with Intel compilers on Linux*. It can also be used when compiling SYCL code with icpx.

Examples

For direct compilations, prefix your compilation command with Ccache:

ccache icx -c test.c
ccache icpx -fsycl -c sycl_test.cpp

When using CMake, set CMAKE_CXX_COMPILER_LAUNCHER to Ccache:

cmake -DCMAKE_CXX_COMPILER=icpx -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ..