feat: add graph runtime api#9
Draft
gongchensu wants to merge 5 commits into
Draft
Conversation
voltjia
requested changes
Jun 24, 2026
Ziminli
requested changes
Jun 24, 2026
aae1676 to
a4bac7f
Compare
voltjia
requested changes
Jun 26, 2026
Comment on lines
+32
to
+33
| Device::Type device_type_{Device::Type::kCpu}; | ||
| void* raw_{nullptr}; |
Comment on lines
+50
to
+51
| Device::Type device_type_{Device::Type::kCpu}; | ||
| void* raw_{nullptr}; |
Comment on lines
+68
to
+69
| Device::Type device_type_{Device::Type::kCpu}; | ||
| void* raw_{nullptr}; |
a4bac7f to
b9c8bad
Compare
This was referenced Jul 3, 2026
* feat!: align runtime API and add runtime dispatch (#11) * Align runtime API with generated wrappers * Add default runtime dispatch specialization * Refactor runtime dispatch namespace * Use Abseil status for runtime device API * Revert "Use Abseil status for runtime device API" This reverts commit a26ddff. * Address runtime dispatch review feedback * Keep runtime API list in generator * Add TensorView constructor guard test * Align runtime memcpy kind constants with CUDA API * Use CUDA-style runtime memcpy constants * Use CUDA-style runtime memcpy constants * Move TensorView tests back into core test * Remove standalone TensorView test target * Remove standalone TensorView test file * Use fully qualified runtime API names in README * style: format runtime dispatch test * feat: refactor InfiniCore CPU runtime to InfiniRT (#8) Co-authored-by: Jiacheng Huang <huangjiacheng0709@outlook.com> * feat: add platform-adaptive runtime tests (#15) * feat: add runtime backend API foundation (#14) --------- Co-authored-by: spike-zhu <74974704+spike-zhu@users.noreply.github.com>
81df7b1 to
9f82a06
Compare
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
scripts/generate_public_headers.py.src/native/cuda/nvidia/runtime_.h,src/native/cuda/iluvatar/runtime_.h,src/native/cuda/metax/runtime_.h, andsrc/native/cuda/moore/runtime_.h.tests/test_native_graph.cc, wired throughtests/CMakeLists.txt.Motivation
InfiniRT should expose CUDA Runtime API-aligned graph capture and graph launch APIs through the generated C++ runtime API, without introducing a C API. This is needed by the standalone InfiniRT graph bridge work in InfiniCore.
Related: InfiniTensor/InfiniCore#1351
Type of Change
feat- new feature / new operator / new platformfix- bug fixperf- performance improvement (no behavioral change)refactor- code restructuring without behavior changetest- adding or fixing tests onlydocs- documentation onlybuild/ci- build system or CI configurationchore- tooling, formatting, or other non-code changes!in the Conventional Commits prefix or aBREAKING CHANGE:footer)Platforms Affected
WITH_CPU)WITH_NVIDIA)WITH_ILUVATAR)WITH_METAX)WITH_CAMBRICON)WITH_MOORE)WITH_ASCEND)WITH_TORCH)Smoke Test Result
Test Results on Supported Platforms
ctestpassed: 8/8Full `pytest` output (optional)
Benchmark / Performance Impact
N/A. This PR adds runtime API surface and tests; it does not tune kernel performance.
Notes for Reviewers
infini::rt::runtime.