Skip to content

Commit 2536801

Browse files
authored
[CI] Explicitly set number of jobs for lit on Windows (#17382)
The new Windows runner is a NUMA system with 2 CPUs, and for whatever reason `lit` seems to only detect the non-hyperthreaded cores on one of the CPUs, so just explicitly set it. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent aabbbe8 commit 2536801

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/sycl-windows-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
105105
echo "CCACHE_DIR=D:\github\_work\cache\${{ inputs.build_cache_suffix }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
106106
echo "CCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
107+
echo "LIT_OPTS='-j$env:NUMBER_OF_PROCESSORS $LIT_OPTS'" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
107108
- name: Register cleanup after job is finished
108109
uses: ./devops/actions/cleanup
109110
- uses: ./devops/actions/cached_checkout

0 commit comments

Comments
 (0)