[TLE][Ascend] Add minimal INT8 GM-to-L1 ND2NZ primitive - #1323
Open
ggbondbest wants to merge 2 commits into
Open
ggbondbest wants to merge 2 commits into
ggbondbest wants to merge 2 commits into
Conversation
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.
Add
data_copy_gm_to_l1_nd2nz_int8, a TLE custom primitive for one signed INT8 GM-to-L1 ND→NZ transfer. It follows CANN 9.1'sDataCopyGM2L1ND2NZImplBaseand preserves all eightNd2NzParamsfields and theiruint16_ttypes. C++ contains onecopy_gm_to_cbuf_multi_nd2nz_b8call; allocation, tiling, matrix multiplication, scaling and scheduling stay in the caller.tl.dotconsumer requirement.i1/uint16_tABI mismatch.Validation on Ascend910B4-1 / CANN 9.1: all changed-file pre-commit checks, 3 valid and 33 rejected registration signatures, 6 device cases, and both manual and Ninja CMake custom-op bitcode builds passed. This builds the custom-op target, not the full compiler. Device coverage is
nd_num=1; dynamic parameters have registration-only coverage. CANN 9.1 requiresenable_legacy_insert_load_store_for_mix_cv=Truefor the existing custom-MTE2 output-memory-scope inference issue.In the FlagGems-vLLM INT8 einsum consumer, switching only the input-copy path under identical compiler options gave median TLE/custom speedups of 1.307× (Flash B=128) and 1.095× (Pro B=4096), with per-call activation packing included and four paired blocks per shape. BF16 outputs matched exactly; FP32 checks passed. The compiler uses 4× temporary workspace for custom (256/512 KiB versus 64/128 KiB). Consumer PR: flagos-ai/FlagGems-vllm#894.