Skip to content

Conversation

@danbev
Copy link
Member

@danbev danbev commented Mar 20, 2025

This commit updates the windows-cublas job to use Ninja as the build system instead of msbuild/msvc.

The motivation for this is that msbuild/mscv does not seem to handle ccache/sccache well, for example it ignores the
CMAKE_C_COMPILER_LAUNCHER etc. variables. But using Ninja as the build caching works and the build is initially the same speed as it is currently (without caching) subsequently builds are much faster.

This commit updates the windows-cublas job to use Ninja as the build
system instead of msbuild/msvc.

The motivation for this is that msbuild/mscv does not seem to handle
ccache/sccache well, for example it ignores the
`CMAKE_C_COMPILER_LAUNCHER` etc. variables. But using Ninja as the build
caching works and the build is initially the same speed as it is
currently (without caching) subsequently builds are much faster.
@danbev
Copy link
Member Author

danbev commented Mar 20, 2025

With these changes the windows-cublas jobs take around 8-9 mins when the cache is hit:
windows-cublas (Release, x64, ON, ON, 12.2.0)
windows-cublas (Release, x64, ON, ON, 11.8.0)

@ggerganov
Copy link
Member

Awesome!

@danbev danbev merged commit 485ece6 into ggml-org:master Mar 20, 2025
93 checks passed
buxuku pushed a commit to buxuku/whisper.cpp that referenced this pull request Mar 26, 2025
This commit updates the windows-cublas job to use Ninja as the build
system instead of msbuild/msvc.

The motivation for this is that msbuild/mscv does not seem to handle
ccache/sccache well, for example it ignores the
`CMAKE_C_COMPILER_LAUNCHER` etc. variables. But using Ninja as the build
caching works and the build is initially the same speed as it is
currently (without caching) subsequently builds are much faster.

Refs: ggml-org#2781
@danbev danbev deleted the ci-windows-cublas-caching branch April 1, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants