Repository navigation
revert!: restore explicit backend dtype includes - #58
Merged
Merged
Conversation
wooway777
approved these changes
Nov 23, 2026
7 tasks done
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
9e2e985) and fix(moore): use portable fp16 type mapping #56 (c0810cf) in a single commit. The resulting source tree matchescd1d482.half.Motivation
#55 made the shared runtime header pull in backend-specific dtype mappings. On Moore, ordinary C++ compilers then encountered the MUSA
halftype while parsing<infini/rt.h>. #56 switched that mapping toFloat16, which resolved the runtime header build and caused existing InfiniOps Moore kernels to fail compilation when they used the mapping for native arithmetic.Restoring explicit includes lets ordinary C++ consumers use the runtime header and lets MUSA kernel code obtain the native mapping from its backend header.
Type of Change
revert— roll back fix: add dtype include for domestic platforms #55 and fix(moore): use portable fp16 type mapping #56Platforms Affected
WITH_CPU)WITH_NVIDIA)WITH_ILUVATAR)WITH_HYGON)WITH_METAX)WITH_MOORE)WITH_CAMBRICON)WITH_ASCEND)Smoke Build and Test Result
CPU build and CTest
All 11 tests passed, including
test_install_consumer.Moore build and install on MTT S5000 with MUSA 4.3.6
InfiniRT built and installed. A
g++probe compiled with<infini/rt.h>, and anmccprobe verified that explicitly including<infini/rt/moore/data_type_.h>maps FP16 tohalf. The installed InfiniRT was used to build and install unmodified InfiniOpsd854a96bin both the full native (mp_31) and smoke configurations with Python bindings.Downstream CPU pytest smoke from the Moore-enabled build
129 passed, 48 skipped, 0 failed.
Test Results on Supported Platforms
Benchmark / Performance Impact
N/A. Header generation and dtype mapping only.
Notes for Reviewers
Source files that instantiate backend-specific FP16 or BF16
TypeMapTypespecializations should include<infini/rt/<backend>/data_type_.h>in the translation unit that uses them. Please review downstream include coverage, especially on Iluvatar.