Skip to content

Commit

Permalink
[CI/Build] enable ccache/scccache for HIP builds (vllm-project#8327)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrifiro authored and Jeffwan committed Sep 19, 2024
1 parent ef67676 commit 729d9fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,17 @@ def configure(self, ext: CMakeExtension) -> None:

if is_sccache_available():
cmake_args += [
'-DCMAKE_C_COMPILER_LAUNCHER=sccache',
'-DCMAKE_CXX_COMPILER_LAUNCHER=sccache',
'-DCMAKE_CUDA_COMPILER_LAUNCHER=sccache',
'-DCMAKE_C_COMPILER_LAUNCHER=sccache',
'-DCMAKE_HIP_COMPILER_LAUNCHER=sccache',
]
elif is_ccache_available():
cmake_args += [
'-DCMAKE_C_COMPILER_LAUNCHER=ccache',
'-DCMAKE_CXX_COMPILER_LAUNCHER=ccache',
'-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache',
'-DCMAKE_HIP_COMPILER_LAUNCHER=ccache',
]

# Pass the python executable to cmake so it can find an exact
Expand Down

0 comments on commit 729d9fc

Please sign in to comment.