Skip to content
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

Enable CUDA EP unit testing on Windows #20039

Merged
merged 11 commits into from
Mar 27, 2024
Merged

Conversation

yuslepukhin
Copy link
Member

Description

Address build issues and source code discrepancies.
Fix cuda_test_provider gtest argument stack corruption.

Motivation and Context

OpTester class that is widely used for kernel testing is not
suitable for testing internal classes for EPs that are built as shared objects.
Currently, CUDA EP tests run only on Linux.
We want to enable testing and developments on Windows,
and create a usable pattern for testing of other EPs internals.

Alternatives considered:
Abstracting EP unit tests into separate test executable such as onnxruntime_test_all.
This alternative was rejected as it would create a lot more changes in the established patterns,
and potentially interfere with CUDA functionality with more complex source code maintanence.

Fix cuda_test_provider gtest argument stack corruption
snnn
snnn previously approved these changes Mar 25, 2024
@yuslepukhin yuslepukhin marked this pull request as ready for review March 25, 2024 20:40
@yuslepukhin yuslepukhin requested a review from a team as a code owner March 25, 2024 20:40
snnn
snnn previously approved these changes Mar 25, 2024
pranavsharma
pranavsharma previously approved these changes Mar 25, 2024
@yuslepukhin yuslepukhin dismissed stale reviews from pranavsharma and snnn via 5d206a6 March 25, 2024 23:32
@snnn
Copy link
Member

snnn commented Mar 26, 2024

onnxruntime/core/util/matrix_layout.h:381:14: error: unused parameter ‘magic’ [-Werror=unused-parameter]

Copy link
Member

@snnn snnn left a comment

Choose a reason for hiding this comment

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

Thank you!

@yuslepukhin yuslepukhin merged commit b95fd4e into main Mar 27, 2024
95 checks passed
@yuslepukhin yuslepukhin deleted the yuslepukhin/fix_cuda_unit_tests branch March 27, 2024 20:32
TedThemistokleous pushed a commit to TedThemistokleous/onnxruntime that referenced this pull request May 7, 2024
### Description
Address build issues and source code discrepancies.
Fix cuda_test_provider gtest argument stack corruption.

### Motivation and Context
`OpTester` class that is widely used for kernel testing is not
suitable for testing internal classes for EPs that are built as shared
objects.
Currently, CUDA EP tests run only on Linux.
We want to enable testing and developments on Windows,
and create a usable pattern for testing of other EPs internals.

Alternatives considered: 
Abstracting EP unit tests into separate test executable such as
`onnxruntime_test_all`.
This alternative was rejected as it would create a lot more changes in
the established patterns,
and potentially interfere with CUDA functionality with more complex
source code maintanence.
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