Skip to content

[Matrix] Add boolean operator tests#1054

Merged
farzonl merged 4 commits into
llvm:mainfrom
farzonl:mat_bool_operator_tests
Jun 26, 2026
Merged

[Matrix] Add boolean operator tests#1054
farzonl merged 4 commits into
llvm:mainfrom
farzonl:mat_bool_operator_tests

Conversation

@farzonl farzonl force-pushed the mat_bool_operator_tests branch from 30db7a7 to adb0358 Compare April 1, 2026 18:05

@bob80905 bob80905 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks mostly good. You might want to document your reasoning for why you chose not to add a thread test for the or operator.

Data: [ 1, 1, 1, 1, 1, 1 ]
- Name: AndTrueFalseOut
Format: Int32
FillSize: 24

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You might consider setting this data to be non-zero. A nit, but it ensures that the buffer is actually being set to 0, and that the program is actually running.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree that we should ensure the buffers are not zero-initialized

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Random thought, should we have a feature where we populate output buffers with random data to catch issues going under the radar due to data being zero-initialized?

Comment thread test/Basic/Matrix/matrix_bool_or_operator.test

@inbelic inbelic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM once Josh's comments are addressed.

The tests do seem to overlap a lot, could we not have the same test coverage with a single 2x2 matrix that has a TT, TF, FT, FF combination?

Data: [ 1, 1, 1, 1, 1, 1 ]
- Name: AndTrueFalseOut
Format: Int32
FillSize: 24

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree that we should ensure the buffers are not zero-initialized

Comment thread test/Basic/Matrix/matrix_bool_and_operator_thread_group.test Outdated
Comment thread test/Basic/Matrix/matrix_bool_and_operator.test Outdated
# Bug https://github.com/llvm/offload-test-suite/issues/704
# XFAIL: Clang && Intel && Vulkan

Bug https://github.com/llvm/offload-test-suite/issues/705

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Commented on the issue, but it needs some detail added to it before I'm comfortable using it to mark an XFAIL. It isn't clear to me whether this is really a driver issue or if it's just a clang bug of some kind.

@farzonl farzonl Jun 6, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated the descript of the ticket, honestly this needs some deeper investigation and I think the ticket should be that investigation.

@farzonl farzonl added the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Jun 6, 2026
@farzonl farzonl force-pushed the mat_bool_operator_tests branch from adb0358 to d6a4387 Compare June 6, 2026 20:45
@farzonl farzonl force-pushed the mat_bool_operator_tests branch from 2733da2 to f13b9ff Compare June 23, 2026 04:51
@farzonl

farzonl commented Jun 23, 2026

Copy link
Copy Markdown
Member Author

There are a few things holding this PR up still. First Warp issue on the matrix_bool_and_operator_thread_group.test test only for clang that behaves the same on both arm64 and x86.

Second issue looks to be driver related for intel that I don't see locally.
My driver is

Description: Intel(R) Arc(TM) A770 Graphics
Driver Version: "32.0.101.8724"

CI is

Description: Intel(R) Arc(TM) Pro B50 Graphics
Driver Version: "32.0.101.8517"

All bool tests are failing on intel with both DXC and Clang on CI.

@farzonl farzonl removed the test-all When applied to a PR this will opt-in to additional pre-merge test configurations.. label Jun 24, 2026
@farzonl farzonl force-pushed the mat_bool_operator_tests branch from b93a66f to e478ac9 Compare June 26, 2026 17:14
@farzonl farzonl merged commit 7bba192 into llvm:main Jun 26, 2026
24 of 28 checks passed
@farzonl farzonl deleted the mat_bool_operator_tests branch June 26, 2026 18:05
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.

[Matrix] Add bool tests for matrix logical operators

6 participants