Skip to content

Add linalg.softmax e2e tests. - #21396

Merged
hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:e2e-softmax
Jul 16, 2025
Merged

hanhanW merged 1 commit into
iree-org:mainfrom
hanhanW:e2e-softmax

Conversation

@hanhanW

@hanhanW hanhanW commented Jul 16, 2025

Copy link
Copy Markdown
Contributor

There are several times that the failure can only be reproduced with a model, while the root cause is a softmax dispatch. Adding an e2e softmax test to save some time for such case.

There are several times that the failure can only be reproduced with a
model, while the root cause is a softmax dispatch. Adding an e2e softmax
test to save some time for such case.

Signed-off-by: hanhanW <[email protected]>
@hanhanW

hanhanW commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

Execution time on my machine:

 3/14 Test #1145: iree/tests/e2e/linalg/check_llvm-cpu_local-task_softmax.mlir ...................   Passed    0.32 sec
      Start 1153: iree/tests/e2e/linalg/check_vmvx_local-task_softmax.mlir
 4/14 Test #1153: iree/tests/e2e/linalg/check_vmvx_local-task_softmax.mlir .......................   Passed    0.33 sec
      Start 1160: iree/tests/e2e/linalg/check_vulkan-spirv_vulkan_softmax.mlir
 5/14 Test #1160: iree/tests/e2e/linalg/check_vulkan-spirv_vulkan_softmax.mlir ...................   Passed    1.20 sec

I tried 10x4096x4096, but it was too slow on vmvx backend. So I made the shape be 10x256x256 instead.

@hanhanW
hanhanW merged commit 6f161cf into iree-org:main Jul 16, 2025
@hanhanW
hanhanW deleted the e2e-softmax branch July 16, 2025 22:34
IanWood1 pushed a commit to IanWood1/iree that referenced this pull request Jul 18, 2025
There are several times that the failure can only be reproduced with a
model, while the root cause is a softmax dispatch. Adding an e2e softmax
test to save some time for such case.

Signed-off-by: hanhanW <[email protected]>
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
There are several times that the failure can only be reproduced with a
model, while the root cause is a softmax dispatch. Adding an e2e softmax
test to save some time for such case.

Signed-off-by: hanhanW <[email protected]>
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.

2 participants