Merged
Conversation
1 task
LeiWang1999
added a commit
that referenced
this pull request
Feb 27, 2025
* remove code ql ci * update comprehensive tilelang-benchmark link
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.
This pull request includes several significant changes to the codebase, primarily focusing on adding new functionalities, improving CPU and GPU kernel handling, and enhancing layout inference. The most important changes include adding new source files, updating existing functions to handle CPU kernels, and improving layout inference with additional checks and utilities.
New Source Files:
src/target/codegen_cpp.h: Added a new header file for generating C++ host code. This file includes theCodeGenTileLangCPPclass with methods for initializing, adding functions, and printing various expressions and statements.src/target/rt_mod_cpp.cc: Added a new source file for building the C++ host module. This file includes theBuildCPPHostfunction, which initializes the code generator and processes functions in the IRModule.src/transform/annotate_device_regions.cc: Added a new source file for annotating device regions in the IR. This file includes theDeviceRegionAnnotaterclass and theAnnotateDeviceRegionsfunction.CPU and GPU Kernel Handling:
src/ir.cc: Updated theKernelLaunchfunction to handle CPU kernels by checking thetilelang_is_cpu_kernel_frameattribute and adjusting the grid and block size checks accordingly. [1] [2]src/op/elem.cc: Updated theCopy::Lowerfunction to handle CPU targets by adding a check for the target device type and vectorizing the thread loop if the target is a CPU. [1] [2]Layout Inference Enhancements:
src/transform/layout_inference.cc: Added new utility functions for identifying dynamic and static shared memory and local fragments. Updated theBufferUseDefCollectorclass to include additional checks and improved theRunfunction to handle various layout inference scenarios. [1] [2]Minor Changes:
CMakeLists.txt: Added new source filessrc/target/codegen_cpp.ccandsrc/target/rt_mod_cpp.ccto the build configuration.src/tl_templates/cpu/common.h: Included additional headers for math and boolean operations.These changes collectively enhance the functionality and robustness of the codebase, particularly in handling different target devices and improving layout inference.