[Dev] Serialize Generated Kernel Name with Operator Config and Hint #153
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.
This pull request includes several significant updates to the
bitblaslibrary, focusing on enhancing code modularity, improving kernel name generation, and refining CUDA initialization processes. The most important changes are grouped by theme below.Enhancements to Kernel Name Generation:
MatmulKernelNameGeneratorclass to generate kernel names based on configuration and hints inbitblas/ops/general_matmul/__init__.py. This class includes methods for serializing hints and simplifying data types. [1] [2]BaseKernelNameGeneratorabstract class to provide a base for kernel name generators inbitblas/ops/operator.py.Improvements in CUDA Initialization:
bitblas/builder/wrapper/tir.py. [1] [2] [3] [4]Updates to Function and Module Handling:
create_dispatch_modandfast_tune_with_dynamic_rangefunctions to handle additional parameters and improve dispatching inbitblas/base/utils.py. [1] [2] [3]optimized_functooptimized_modacross several files to reflect the updated structure of optimized modules. [1] [2] [3]Code Modularization:
bitblas/ops/general_matmul/__init__.pyandbitblas/ops/operator.py. [1] [2] [3]These changes collectively enhance the maintainability and functionality of the
bitblaslibrary, particularly in the areas of kernel name generation and CUDA initialization.For example, a tuned kernel can finally be wrapped with