Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
GH-113464: A copy-and-patch JIT compiler#113465
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
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
8f6c5fee0888de365f7a27fb79b866a5659f90bd1ea98d4fedc308baf2b18d7e2ae7bcbe8896556976b3e33b4ab3ac194650731b5e559898317ba7907e03a1e64905911c7f444981573168883029936e6ed75bd68488def28351a0cc5db79f2817bbfb9663877e14875e9259dff1d6a7af9f114c8b507357a801968a87a1f44767b60d6295d634cd3ca4956f092c79515ba80df2927ae26abedf1cb4a1fb2e47f91799b79aef1e427b33e2132b270894448edd08d53c502ab9cf87aab283492ddc4b166f0c4e1470f23be38c626633497f8c0be489a73eb3cee5298091a71c1ab13056f898dcc2720878f07fb485aa9d3b38db6838e0a69d1d33cc952c78f70a62e82d878dc80c440e55169acb3d6fa4ad4ffe087ff195e27de56641963c663b54bb6fb3afb5d934ddf21a9efd7eaec09cdf8b1d5f4e950c4bf874eda424d3c816f8824cb777aa253c4f60977d65308afb676a60e8a50ac997b66c26012b82579d2393017071dd8bed2687e45774f6dcd05c17241ce0f5137145ffac31b888d9ca46112654d3a08196c3499cc201a90446e986f86a0f7a7e995c4904e48021c98f17495bc2b5b57d39d915249e12af142c2f6490a7127a50cf89996d958bd20c7bb54b57a592f01a8a63b40614ee5bbda588342f07925f1404ae9371e2954073b641244cb7a875bf5187dfface9a9637a80466d7a00abf88a9c613e094581abc5ba1242d96de1fa6d7b01ffefced95f11772d8687809ccedcb290a86ed6a18349218e8176b8c3e2aab3af4a4ba4a2862780b6789901843ab556e7c458df49c1867b882263c522adc586d4fd794f0877bfa6533c5c44c856fbb07a8931fe1fcdc9464f903c4e67db478f01ae73ed82b53c35f3dc55796770a48089989523d0434646063fb8addbbe6b19d7cb63610e44a024aaf7606df23805750b0df80d358ef323a9d6d36c9de7026d0c412c68db1f1c9fe9faa27422932726434393342775c1b700720ad5f5c518c095e229edd01a2c74266f5a6ebd0852d17e22afbc1f55315b1d6b84187675dd0cbc6763efb62bc8344683f2636eceefbe31a23fad9844b194feb5f21d0dca530a2491701a956bde78341d0bba20fb4474d041162cadebb24d4f656e00c9c80679b1bbf6643773663ba3121ac0f2b352c6b763f527b15529c1cee73981d0fb6437bc5326e248af3984e6113a1f16648d8446bee49c33c78f4d3e207581036eb00e021File 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
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -2,6 +2,7 @@ name: JIT | ||
| on: push | ||
| jobs: | ||
| jit: | ||
| # if: false # XXX | ||
| name: ${{ matrix.target }} (${{ matrix.debug && 'Debug' || 'Release' }}) | ||
| runs-on: ${{ matrix.runner }} | ||
| strategy: | ||
| @@ -12,11 +13,9 @@ jobs: | ||
| - x86_64-pc-windows-msvc/msvc | ||
| - x86_64-apple-darwin/clang | ||
| - x86_64-unknown-linux-gnu/gcc | ||
| - x86_64-unknown-linux-gnu/clang | ||
| - aarch64-unknown-linux-gnu/gcc | ||
| - aarch64-unknown-linux-gnu/clang | ||
| debug: | ||
| - true | ||
| - false | ||
| @@ -40,48 +39,61 @@ jobs: | ||
| architecture: x86_64 | ||
| runner: ubuntu-latest | ||
| compiler: gcc | ||
| - target:x86_64-unknown-linux-gnu/clang | ||
| architecture:x86_64 | ||
| runner:ubuntu-latest | ||
| compiler: clang | ||
| - target: aarch64-unknown-linux-gnu/gcc | ||
| architecture: aarch64 | ||
| runner: ubuntu-latest | ||
| compiler: gcc | ||
| # These fail because of emulation, not because of the JIT: | ||
| exclude: test_unix_events test_init test_process_pool test_multiprocessing_fork test_cmd_line test_faulthandler test_os test_perf_profiler test_posix test_socket test_subprocess test_venv | ||
| - target: aarch64-unknown-linux-gnu/clang | ||
| architecture: aarch64 | ||
| runner: ubuntu-latest | ||
| compiler: clang | ||
| # These fail because of emulation, not because of the JIT: | ||
| exclude: test_unix_events test_init test_process_pool test_shutdown test_multiprocessing_fork test_cmd_line test_faulthandler test_os test_perf_profiler test_posix test_signal test_socket test_subprocess test_threading test_venv | ||
| env: | ||
| CC: ${{ matrix.compiler }} | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.11' | ||
brandtbucher marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - name: Windows | ||
brandtbucher marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| if: runner.os == 'Windows' | ||
| run: | | ||
| choco install llvm --allow-downgrade --version ${{ matrix.llvm }} | ||
brandtbucher marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| ./PCbuild/build.bat ${{ matrix.debug && '-d' || '--pgo' }} -p ${{ matrix.architecture }} | ||
| ./PCbuild/rt.bat ${{ matrix.debug && '-d' }} -p ${{ matrix.architecture }} -q --exclude ${{ matrix.exclude }} --multiprocess 0 --timeout 3600 --verbose2 --verbose3 | ||
| - name: macOS | ||
brandtbucher marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| if: runner.os == 'macOS' | ||
| run: | | ||
| brew install llvm@${{ matrix.llvm }} | ||
| export SDKROOT="$(xcrun --show-sdk-path)" | ||
| ./configure ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto' }} | ||
| make all --jobs 3 | ||
| ./python.exe -m test --exclude ${{ matrix.exclude }} --multiprocess 0 --timeout 3600 --verbose2 --verbose3 | ||
| - name: Native Linux | ||
brandtbucher marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| if: runner.os == 'Linux' && matrix.architecture == 'x86_64' | ||
| run: | | ||
| sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }} | ||
brandtbucher marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH" | ||
| ./configure ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto' }} | ||
| make all --jobs 2 | ||
| ./python -m test --exclude ${{ matrix.exclude }} --multiprocess 0 --timeout 3600 --verbose2 --verbose3 | ||
| - name: Emulated Linux | ||
| if: runner.os == 'Linux' && matrix.architecture != 'x86_64' | ||
| run: | | ||
| sudo aptinstall --yes gcc-$HOST qemu-user | ||
| sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }} | ||
| export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH" | ||
| ./configure --prefix="$(pwd)/../build" | ||
| make install --jobs 2 | ||
| make clean --jobs 2 | ||
| export HOST=${{ matrix.architecture }}-linux-gnu | ||
| ${{ !matrix.debug && matrix.compiler == 'clang' && './configure --enable-optimizations' || '' }} | ||
| ${{ !matrix.debug && matrix.compiler == 'clang' && 'make profile-run-stamp --jobs 2' || '' }} | ||
| export CC="${{ matrix.compiler == 'clang' && 'clang --target=$HOST' || '$HOST-gcc' }}" | ||
| @@ -91,26 +103,3 @@ jobs: | ||
| ./configure ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto' }} --build=x86_64-linux-gnu --host=$HOST --with-build-python=../build/bin/python3 --with-pkg-config=no ac_cv_buggy_getaddrinfo=no ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes | ||
| make all --jobs 2 | ||
| ./python -m test --exclude ${{ matrix.exclude }} --multiprocess 0 --timeout 3600 --verbose2 --verbose3 | ||
brandtbucher marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||