refactor(api): standardize GEMM/GEMV naming convention#138
Merged
Conversation
Implement Issue #130: Standardize Python binding names for GEMM/GEMV operations following the pattern: {operation}_{input_dtype}_{output_dtype}[_{variant}][_{arch}] C++ Binding Changes (10 files): - gemm/generic.cpp: gemm_f32_f32, gemm_tf32_f32, gemm_f32_f32_batched - gemm/fp8xfp8_bf16.cpp: gemm_fp8_f32_sm{90,100,120}_available - gemm/fp8xfp8_fp8.cpp: gemm_fp8_fp8_sm120_available - gemm/fp8xbf16_bf16.cpp: gemm_w8a16_bf16_sm120, gemm_w8a16_init_lut - gemm/grouped.cpp: grouped_gemm_fp8_bf16_sm120 - gemm/int.cpp: gemm_int8_int32_sm120, gemm_int4_int32_sm120 - gemm/nvf4xbf16_bf16.cpp: gemm_nvf4_bf16_sm120_available - gemv/generic.cpp: gemv_bf16_bf16_sm120, gemv_bf16_bf16_available - gemv/fp8xfp8_bf16.cpp: gemv_fp8_bf16_sm120, gemv_fp8_bf16_batched_sm120 - gemv/nvf4xbf16_bf16.cpp: gemv_nvf4_bf16_sm120_available Python API Changes: - ops/matmul.py: Use new native names internally, add Python aliases - ops/basic.py: Export both old and new standardized names Migration: Old names kept as aliases for backwards compatibility. Closes #130 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
{operation}_{input_dtype}_{output_dtype}[_{variant}][_{arch}]Changes
C++ Bindings (10 files)
gemm/generic.cppgemm_f32_f32,gemm_tf32_f32,gemm_f32_f32_batchedmatmul,matmul_tf32,gemm_strided_batched_fp32gemm/fp8xfp8_bf16.cppgemm_fp8_f32_sm{90,100,120}_availablefp8_sm*_availablegemm/fp8xfp8_fp8.cppgemm_fp8_fp8_sm120_availablefp8_fp8_sm120_availablegemm/fp8xbf16_bf16.cppgemm_w8a16_bf16_sm120,gemm_w8a16_init_lutw8a16_gemm_sm120gemm/grouped.cppgrouped_gemm_fp8_bf16_sm120grouped_gemm_fp8_bf16gemm/int.cppgemm_int8_int32_sm120,gemm_int4_int32_sm120int8_native_gemm_sm120gemm/nvf4xbf16_bf16.cppgemm_nvf4_bf16_sm120_availablenvf4_bf16_sm120_availablegemv/generic.cppgemv_bf16_bf16_sm120gemv_bf16_opt_sm120gemv/fp8xfp8_bf16.cppgemv_fp8_bf16_sm120gemv_fp8_bf16_optgemv/nvf4xbf16_bf16.cppgemv_nvf4_bf16_sm120gemv_nvf4_bf16Python API
ops/matmul.py: Updated internal calls to use new native names, added standardized aliasesops/basic.py: Exports both old and new naming conventionsTest plan
Closes #130
🤖 Generated with Claude Code