Skip to content

Conversation

@rishi-yadav
Copy link

@rishi-yadav rishi-yadav commented Oct 28, 2025

API Function Template Signature Function
XE_LOAD_2D <Bits, Height, Width> High-speed 2D block loading
XE_STORE_2D <Bits, Height, Width> Efficient 2D block storage

11 test cases added for diff datatypes with 7 variations of height so total 77 variations used in this PR

@rishi-yadav rishi-yadav added the Tests For Unit tests and Benchmark tests and general validation specific changes label Oct 28, 2025
@rishi-yadav rishi-yadav requested a review from Copilot October 28, 2025 10:46
Copy link

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 adds comprehensive unit tests for the Intel XE block 2D copy operations (XE_LOAD_2D and XE_STORE_2D). The tests validate these operations across 11 different data types with 7 height variations each, totaling 77 test configurations.

Key changes:

  • Added new test file xe_copy_2d_test.cpp with device kernel and host test infrastructure for 2D copy validation
  • Updated version check guard in mma.cpp to handle IGC version 2.18+ more robustly and added fallback test for older versions
  • Integrated new test file into the build system via CMakeLists.txt

Reviewed Changes

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

File Description
test/unit/cute/intel_xe/xe_copy_2d_test.cpp Implements test infrastructure including kernel, test function template, and 11 test cases covering various data types
test/unit/cute/intel_xe/mma.cpp Improves version check logic and adds fallback test case for IGC versions below 2.18
test/unit/cute/intel_xe/CMakeLists.txt Registers xe_copy_2d_test.cpp in the build configuration
Comments suppressed due to low confidence (1)

test/unit/cute/intel_xe/mma.cpp:153

  • Missing #endif to close the preprocessor conditional block opened at line 315.
#endif

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the disclaimer.
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

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

Corrected 'disclaimer' to 'following disclaimer' to match standard BSD-3-Clause license text.

Suggested change
* list of conditions and the disclaimer.
* list of conditions and the following disclaimer.

Copilot uses AI. Check for mistakes.
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF POSSIBILITY OF SUCH DAMAGE.
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

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

Corrected 'ADVISED OF POSSIBILITY' to 'ADVISED OF THE POSSIBILITY' to match standard BSD-3-Clause license text.

Suggested change
* OF THIS SOFTWARE, EVEN IF ADVISED OF POSSIBILITY OF SUCH DAMAGE.
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Copilot uses AI. Check for mistakes.
Copy link

@Antonyvance Antonyvance left a comment

Choose a reason for hiding this comment

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

Can you add comments on all the cases covered in the tests?

@Antonyvance Antonyvance requested a review from tdeng5 November 5, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tests For Unit tests and Benchmark tests and general validation specific changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants