Open
Conversation
Add a build_wheels_riscv64 job using cibuildwheel with QEMU emulation. Targets CPython 3.10-3.14 (including free-threaded) on manylinux_riscv64. Skips musllinux (no riscv64 image available). Higher timeout (120 min) to account for QEMU + Rust compilation overhead. Closes openai#502
38 tasks
Author
|
Native build verified on riscv64 hardware (BananaPi F3, SpacemiT K1, rv64gc, GCC 14.2.0): SUCCESS. |
Author
|
Successful riscv64 build on native RISE runner (~5 min): https://github.com/gounthar/tiktoken/actions/runs/23745982111 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
linux_riscv64wheels to the build workflow, mirroring the existingaarch64 build job.
Changes
build_wheels_riscv64job using cibuildwheel + QEMU emulationmanylinux_riscv64join_artifactsdependency listEvidence
A tested riscv64 wheel is available in our community index:
https://gounthar.github.io/riscv64-python-wheels/simple/tiktoken/
Built natively on BananaPi F3 (SpacemiT K1, rv64imafdcv, 8 cores @ 1.6 GHz, 16 GB RAM).
Context
manylinux_2_28_riscv64is available in pypa/manylinuxriscv64gc-unknown-linux-gnuinside the manylinux containerCloses #502
Note: this work is part of the RISE Project effort to improve Python ecosystem support on riscv64 platforms. Native riscv64 CI runners are available for free via RISE RISC-V runners.