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

Remove unused parameters from win-ci-vs-2022-job.yml #21530

Closed
wants to merge 6 commits into from

Conversation

jchen351
Copy link
Contributor

@jchen351 jchen351 commented Jul 27, 2024

Description

Remove unused parameters from win-ci-vs-2022-job.yml:
name: isTraining
name: ORT_EP_NAME

Motivation and Context

Clean up

@jchen351 jchen351 requested a review from a team as a code owner July 27, 2024 17:02
@snnn
Copy link
Member

snnn commented Jul 27, 2024

The IsTraining parameter is deprecated in #14055. But why the other parameter went unused? It should be used in C# tests. Are we running C# EP tests ? A few our C# source files use the USE_CUDA macro:

https://github.com/search?q=repo%3Amicrosoft%2Fonnxruntime+USE_CUDA+language%3AC%23+&type=code

Do they get tested?

@jchen351
Copy link
Contributor Author

The IsTraining parameter is deprecated in #14055. But why the other parameter went unused? It should be used in C# tests. Are we running C# EP tests ? A few our C# source files use the USE_CUDA macro:

https://github.com/search?q=repo%3Amicrosoft%2Fonnxruntime+USE_CUDA+language%3AC%23+&type=code

Do they get tested?

The USE_CUDA is an environment variable. The parameter I am removing ORT_EP_NAME: CUDA is not related to it.

# Conflicts:
#	tools/ci_build/github/azure-pipelines/win-gpu-ci-pipeline.yml
@snnn
Copy link
Member

snnn commented Jul 29, 2024

I just checked the latest running log of the "Zip-Nuget-Java-Nodejs Packaging Pipeline". It seems some GPU related tests are skipped. For example, the "Run End to End Test (C#) .Net Core x64" step in NuGet_Test_Win_GPU says:

Skipped TestGpu [1 ms]
Skipped TestRegisterCustomOpLibrary [1 ms]

@jchen351
Copy link
Contributor Author

Run End to End Test (C#) .Net Core x64 is from test_win.yml <- c-api-cpu.yml <- c-api-noopenmp-packaging-pipelines.yml is not related to the changes in win-ci-vs-2022-job.yml

@snnn
Copy link
Member

snnn commented Jul 29, 2024

Our "Windows GPU CUDA CI Pipeline" also doesn't run C# GPU tests. Could you please help fix it?

@@ -35,9 +31,6 @@ parameters:
type: boolean
default: true

- name: ORT_EP_NAME
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure if this parameter is still needed or not. Because now we are not running CUDA C# tests. Maybe we should keep this parameter here and use it correctly.

Copy link
Member

Choose a reason for hiding this comment

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

The reference of ORT_EP_NAME got removed in PR #13637 . I think that was an accident.

Copy link
Member

Choose a reason for hiding this comment

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

@skottmckay said:

If you use --build_csharp (we do on line 145), I believe onnxruntime_csharp.cmake will update csharp/Directory.Build.props, which sets which EPs are enabled via 'USE_xxx' defines.
This is a better setup as it a) allows an arbitrary combination of EPs to be used and b) doesn't use a /p property which is a global value that overrides any values set in csproj files.

However, it seems something was missing.

@jchen351 jchen351 closed this Aug 30, 2024
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