Skip to content

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

Closed
Jian Chen (jchen351) wants to merge 6 commits into
mainfrom
Cjian/ep-name
Closed

Jian Chen (jchen351) wants to merge 6 commits into
mainfrom
Cjian/ep-name

Conversation

@jchen351

@jchen351 Jian Chen (jchen351) commented Jul 27, 2024 •

Copy link
Copy Markdown
Contributor

Description

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

Motivation and Context

Clean up

@jchen351
Jian Chen (jchen351) requested a review from a team July 27, 2024 17:02
@snnn

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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

type: boolean
default: true

- name: ORT_EP_NAME

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 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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Scott McKay (@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.

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