Skip to content

Conversation

@chengjunlu
Copy link
Contributor

Enable the block store for tensor pointer.

@chengjunlu
Copy link
Contributor Author

I am cleaning up the LIT test. Will add it soon.

@chengjunlu chengjunlu force-pushed the chengjun/block_store branch from 050b19b to 1b4e6e3 Compare July 10, 2025 00:53
@whitneywhtsang whitneywhtsang changed the title [LoadStoreOpToLLVM]Enable the block store for tensor pointer [LoadStoreOpToLLVM] Enable the block store for tensor pointer Jul 10, 2025
@chengjunlu chengjunlu force-pushed the chengjun/block_store branch 4 times, most recently from ca8654c to fcf3c4b Compare July 10, 2025 01:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables block store functionality for tensor pointer operations by extending the existing block I/O conversion infrastructure to support store operations in addition to the previously supported prefetch and load operations.

  • Extends the isMemoryRowMajor template function to include triton::StoreOp in addition to existing operations
  • Adds a comprehensive getBlockIOTileSize template function to determine optimal tile dimensions for block I/O operations
  • Implements block store conversion logic in StoreOpToBlockIOConversion with hardware constraints validation and 2D block store operation generation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
LoadStoreOpToLLVM.cpp Main implementation adding block store support with tile size calculation and store operation conversion
GetEnv.hpp Adds new environment variable for enabling block store on regular pointers

@chengjunlu chengjunlu force-pushed the chengjun/block_store branch 4 times, most recently from 1bd8db0 to df8a253 Compare July 10, 2025 05:19
@chengjunlu chengjunlu force-pushed the chengjun/block_store branch 6 times, most recently from 8dd3f04 to 70a5b73 Compare July 10, 2025 06:43
@chengjunlu chengjunlu force-pushed the chengjun/block_store branch 3 times, most recently from 493783e to 5889663 Compare July 10, 2025 07:21
@chengjunlu chengjunlu force-pushed the chengjun/block_store branch 8 times, most recently from 3e66e80 to b63da93 Compare July 11, 2025 04:13
@chengjunlu
Copy link
Contributor Author

chengjunlu commented Jul 11, 2025

Let's merge the PR #4683 and PR #4686 first

@chengjunlu chengjunlu force-pushed the chengjun/block_store branch 4 times, most recently from fbefa53 to faf30a9 Compare July 14, 2025 07:35
@chengjunlu
Copy link
Contributor Author

Some part of changes are under reviewing in a separate PR #4704

@chengjunlu chengjunlu force-pushed the chengjun/block_store branch 8 times, most recently from 2cd07aa to 0dbedde Compare July 17, 2025 02:04
@chengjunlu
Copy link
Contributor Author

@whitneywhtsang , @etiotto , @LiyangLingIntel
Please help review this PR since it is ready.

@chengjunlu chengjunlu merged commit 6b65fa3 into main Jul 17, 2025
15 checks passed
@chengjunlu chengjunlu deleted the chengjun/block_store branch July 17, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants