Repository navigation
fix(sdk): prepare GCC 11 toolchain and Adreno F16 fallback - #1699
Open
Khoi VN (vnk8071) wants to merge 3 commits into
Open
Khoi VN (vnk8071) wants to merge 3 commits into
Khoi VN (vnk8071) wants to merge 3 commits into
Conversation
Signed-off-by: vnk8071 <kvo@qti.qualcomm.com>
Signed-off-by: vnk8071 <kvo@qti.qualcomm.com>
Signed-off-by: vnk8071 <kvo@qti.qualcomm.com>
Khoi VN (vnk8071)
force-pushed
the
fix/linux-glibc235-hexagon-build
branch
from
November 25, 2026 05:19
09b9cb1 to
7c86df9
Compare
Khoi VN (vnk8071)
marked this pull request as ready for review
November 25, 2026 05:19
This branch has not been deployed
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.
Pull Request
Description
ARM64 Linux builds need a consistent compiler/runtime ABI, and Adreno compiler E031.42.02.00 aborts while compiling optimized F16 attention kernels with a
Stride != 0assertion. This change prepares the next Linux toolchain image and applies a compiler-specific llama.cpp fallback so the same SDK can run across supported IoT hardware.Summary
docker.io/qualcomm/geniex-toolchain-linux:v0.2.1using theBASE_IMAGEbuild argument. The Linux base defaults to publishedv0.2.0and accepts alinux_base_imageoverride; the Dockerfile does not embed an image tag or digest. Publishing defaults to both Linux and Android. Install GCC/G++ 11 ARM64 cross compilers, preserve and hash-check the GLIBC 2.41 ARM64 sysroot and target libstdc++ runtime, and compile/link C and C++/OpenMP smoke programs.sizeof(uint16_t)for GCC 11 compatibility.bin/geniex-bench, against GLIBC 2.41, GLIBCXX 3.4.30 and CXXABI 1.3.13. Keep ABI regression tests intests/test_check_linux_abi.pyand run them from the Python lint workflow.The fallback is selected by compiler version rather than board identity. The llama.cpp submodule pin remains
93cf736a8d1d46aa922e27eb64aa712bcd5ebc30; two patches are registered in GenieX's SDK build without changing that pin.Related Issue
Related: #458 (Linux libstdc++ ABI compatibility).
Type of Change
Checklist
Additional Context
Test plan
Four-board smoke-test results:
All successful inference smoke tests used
Qwen3-0.6B-Q8_0.gguf, context 256 and eight generated tokens. Accelerator tests used all-layer offload; GPU runs offloaded 29/29 layers. These checks establish successful inference for the tested configurations, rather than comparative performance.Validation:
Remaining work:
v0.2.1candidate is built and validated, but the image has not been published. Both Linux CI references and documented build commands still select publishedv0.2.0, which lacks GCC 11. Publish and verifyv0.2.1, then update those references before merging; Both Linux SDK CI jobs now fail to configure becauseaarch64-linux-gnu-gcc-11andaarch64-linux-gnu-g++-11are missing from the current CI image.09991a8695adca562b653826aba498164d34c013. The review branch was advanced to maincbc93b313d6524b056d67975b8cc9f1f9977727bfor this PR; hardware and full-release builds have not been repeated on the newer base. Local ABI tests, lint and patch integrity checks were repeated during PR preparation. The later configurable-base-image change passed workflow YAML and whitespace checks; the toolchain image and hardware tests have not been repeated for that configuration change.All six ABI regression tests passed after moving them to
tests/test_check_linux_abi.py(python -m unittest discover -s tests -p 'test_check_linux_abi.py'); Ruff lint/format, workflow YAML parsing and staged whitespace checks passed. No additional explanatory source comments were introduced. Existing licensing is preserved. No device addresses, credentials, local reports or workstation paths are included.