Skip to content

Commit ab409a3

Browse files
authored
fix dinov2 cuda-windows (#20296)
Differential Revision: D108700232
1 parent 370c576 commit ab409a3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.ci/scripts/test_model_e2e_windows.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,11 @@ try {
176176

177177
Write-Host "::group::Build ExecuTorch (CUDA)"
178178
$numCores = [Math]::Max([Environment]::ProcessorCount - 1, 1)
179-
cmake --preset llm-release-cuda @cmakeCudaArgs
179+
# EXECUTORCH_BUILD_EXTENSION_IMAGE defaults OFF in the preset, so it must be
180+
# enabled explicitly here (matching the Makefile CUDA target used on Linux).
181+
# The dinov2 runner links the installed extension_image.lib; without this the
182+
# main install never builds it and dinov2_runner fails to link (LNK1181).
183+
cmake --preset llm-release-cuda -DEXECUTORCH_BUILD_EXTENSION_IMAGE=ON @cmakeCudaArgs
180184
cmake --build cmake-out --target install --config Release -j $numCores
181185
Write-Host "::endgroup::"
182186

0 commit comments

Comments
 (0)