Repository navigation
feat: add Kunlun XRE runtime support - #48
Open
JoeZhang-0x000 wants to merge 1 commit into
Open
JoeZhang-0x000 wants to merge 1 commit into
JoeZhang-0x000 wants to merge 1 commit into
Conversation
This was referenced Oct 10, 2026
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.
Summary
WITH_KUNLUN, appendDevice::Type::kKunlun = 10without renumbering existing devices, and generate public Kunlun headers/dispatch.Motivation
Prerequisite for InfiniOps #1001, the Kunlun RoPE backend. Neither current runtime nor operator repositories have a Kunlun backend. This replaces the runtime dependency of the closed legacy contribution InfiniCore #1574.
Type of Change
feat— new backend capabilityPlatforms Affected
WITH_KUNLUN)Smoke Build and Test Result
P800 OAM; XRE runtime query 5.0 (
bded6e7); GCC 9.4; Python 3.10. Fresh builds from this patch:Also built/tested Kunlun only (
WITH_CPU=OFF): 11/11 passed; CPU only (WITH_KUNLUN=OFF): 10/10 passed.Test Results on Supported Platforms
Benchmark / Performance Impact
N/A — prerequisite runtime support, no kernel performance claim.
Notes for Reviewers
XRE has no native memset: synchronous fills use bounded 4 KiB staging copies. Async memset/allocation, memory-info, event timing and native graph capture return
XPUERR_NOSUPPORT; nonzero event flags are rejected.DeviceSynchronizewaits for the default stream and runtime-created streams on the current device; callers borrowing external streams must synchronize them explicitly. Installed consumers resolve XRE viaInfiniRT_KUNLUN_ROOT/XRE_ROOT. No report documents or benchmark data are committed.