Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
GH-115869: Reference implementation for hosting JIT stencils#129331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Changes fromall commits
a6105e6
e9f5c47
f7b87b4
7ac3442
db4e940
047ab27
9ea2666
b384ed1
b23f7e7
231cb23
9f18b7e
406e936
f5bf9cd
13bfc68
a34fa62
3a3fa75
9ceb522
84b42f1
beab423
d3508b2
b9fc9c6
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -58,7 +58,7 @@ jobs: | ||
- aarch64-pc-windows-msvc/msvc | ||
- x86_64-apple-darwin/clang | ||
- aarch64-apple-darwin/clang | ||
- x86_64-pc-linux-gnu/gcc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Turns out that this was actually running on | ||
- aarch64-unknown-linux-gnu/gcc | ||
debug: | ||
- true | ||
@@ -81,7 +81,7 @@ jobs: | ||
- target: aarch64-apple-darwin/clang | ||
architecture: aarch64 | ||
runner: macos-14 | ||
- target: x86_64-pc-linux-gnu/gcc | ||
architecture: x86_64 | ||
runner: ubuntu-24.04 | ||
- target: aarch64-unknown-linux-gnu/gcc | ||
@@ -133,6 +133,71 @@ jobs: | ||
make all --jobs 4 | ||
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3 | ||
- name: Check if stencils need regeneration | ||
id: check-stencils | ||
if: ${{!matrix.debug }} | ||
shell: bash | ||
run: | | ||
git add Tools/jit/stencils | ||
if ! git diff --staged --exit-code --quiet; then | ||
git diff --staged > jit_stencils.patch | ||
exit 1 | ||
fi | ||
- name: Format target name | ||
if: ${{ failure() && steps.check-stencils.conclusion == 'failure' && !matrix.debug }} | ||
id: strip-target | ||
shell: bash | ||
run: | | ||
target=${{ matrix.target }} | ||
target="${target%%/*}" | ||
echo "target=$target" >> $GITHUB_OUTPUT | ||
- name: Upload stencil patch | ||
if: ${{ failure() && steps.check-stencils.conclusion == 'failure' && !matrix.debug }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ steps.strip-target.outputs.target }}-jit-stencils | ||
path: jit_stencils.patch | ||
aggregate-stencil-patches: | ||
name: Aggregate stencil patches | ||
needs: jit | ||
runs-on: ubuntu-24.04 | ||
if: ${{ failure() }} | ||
steps: | ||
- name: Download stencil artifacts | ||
run: | | ||
mkdir -p artifacts | ||
gh run download ${{ github.run_id }} --pattern '*jit-stencils*' --dir artifacts --repo ${{ github.repository }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Aggregate stencil patches | ||
run: | | ||
temp_file="$(mktemp)" | ||
: > "$temp_file" | ||
find artifacts -mindepth 1 -maxdepth 1 -type d | while read -r dir; do | ||
find "$dir" -type f -name "*.patch" -exec cat {} + >> "$temp_file" | ||
done | ||
sed_command="s/[[:space:]]*$//" | ||
if [[ "$(uname)" == "Darwin" ]]; then | ||
sed -i '' "$sed_command" "$temp_file" | ||
else | ||
sed -i "$sed_command" "$temp_file" | ||
fi | ||
mv "$temp_file" aggregated_jit_stencils.patch | ||
- name: Upload aggregated stencil patch | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: aggregated-jit-stencils | ||
path: aggregated_jit_stencils.patch | ||
jit-with-disabled-gil: | ||
name: Free-Threaded (Debug) | ||
needs: interpreter | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Removes the LLVM build-time requirement for JIT-enabled builds of Python |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.