Skip to content

Commit 6e6ab75

Browse files
committed
Update
[ghstack-poisoned]
2 parents fa3793a + c045a60 commit 6e6ab75

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/build-presets.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
branches:
77
- main
88
- release/*
9-
paths:
10-
- .github/workflows/build-presets.yml
119
workflow_dispatch:
1210

1311
concurrency:
@@ -121,14 +119,24 @@ jobs:
121119
set -eux
122120
conda init powershell
123121
powershell -Command "& {
122+
Set-PSDebug -Trace 1
124123
\$ErrorActionPreference = 'Stop'
125-
Set-PSDebug -Trace 2
124+
\$PSNativeCommandUseErrorActionPreference = \$true
126125
127126
conda create --yes --quiet -n et python=3.12
128127
conda activate et
129128
130129
python install_requirements.py
131130
cmake --preset ${{ matrix.preset }}
131+
if (\$LASTEXITCODE -ne 0) {
132+
Write-Host "CMake configuration was unsuccessful. Exit code: \$LASTEXITCODE."
133+
exit \$LASTEXITCODE
134+
}
135+
132136
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
133137
cmake --build cmake-out -j \$numCores
138+
if (\$LASTEXITCODE -ne 0) {
139+
Write-Host "CMake build was unsuccessful. Exit code: \$LASTEXITCODE."
140+
exit \$LASTEXITCODE
141+
}
134142
}"

tools/cmake/preset/windows.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
1919
set_overridable_option(XNNPACK_ENABLE_AVX256SKX OFF)
2020
set_overridable_option(XNNPACK_ENABLE_AVX256VNNI OFF)
2121
set_overridable_option(XNNPACK_ENABLE_AVX256VNNIGFNI OFF)
22+
set_overridable_option(XNNPACK_ENABLE_AVX512BF16 OFF)
2223

2324
# Below options are not yet buildable on Windows, but should be.
2425
#set_overridable_option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON)

0 commit comments

Comments
 (0)