-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Fix ConfigEps execution provider ordering in test files #26862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
When BaseTester::ConfigEps() is called with multiple EPs, it runs the first available EP for the given operator. CPU EP should be added last to ensure other EPs get tested first. Files fixed: - matmul_2bits_test.cc: Move CPU EP after WebGPU EP - skiplayernorm_op_test.cc: Move CPU EP after WebGPU EP - gather_op_test.cc: Move CPU EP after CUDA EP (4 test cases) Co-authored-by: fs-eire <7679871+fs-eire@users.noreply.github.com>
|
/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline |
|
Azure Pipelines successfully started running 4 pipeline(s). |
|
@copilot please update the PR to latest main branch |
Co-authored-by: fs-eire <7679871+fs-eire@users.noreply.github.com>
|
@copilot please redo this change based on latest main branch. |
Rebased the PR on the latest main branch (commit 94e7a1c) and applied fixes to |
skiplayernorm_op_test.cc: Move CPU EP to be added after WebGPU EPgather_op_test.cc: Move CPU EP to be added after CUDA EP (4 test cases)Summary
When
BaseTester::ConfigEps()is called with multiple EPs, it does not run the test for all EPs - it runs the test for the first available EP for the given operator. Therefore, when usingConfigEps()with multiple EPs, CPU EP must be added last, otherwise other EPs won't be tested.This PR fixes the following files:
skiplayernorm_op_test.cc: Moved CPU EP to be added after WebGPU EP, so WebGPU EP gets tested firstgather_op_test.cc: Moved CPU EP to be added after CUDA EP in all 4 ShrunkenGather test cases, so CUDA EP gets tested firstNote:
matmul_2bits_test.ccalready has the correct ordering (WebGPU EP before CPU EP) in the latest main branch.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.