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

Don't reduce warning level for CUDA build on Windows #19663

Merged
merged 17 commits into from
Mar 6, 2024

Conversation

skottmckay
Copy link
Contributor

@skottmckay skottmckay commented Feb 27, 2024

Description

Address warnings so all the ORT projects build with /W4 on Windows.

Mainly

  • unused parameters
  • variables shadowing other ones

Motivation and Context

#19588 started on this.

@skottmckay skottmckay changed the title Don't reducing warning level for CUDA build on Windows Don't reduce warning level for CUDA build on Windows Feb 27, 2024
@snnn
Copy link
Member

snnn commented Feb 28, 2024

/azp run Windows GPU TensorRT CI Pipeline

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@snnn
Copy link
Member

snnn commented Feb 28, 2024

/azp run Windows GPU CI Pipeline

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@snnn
Copy link
Member

snnn commented Feb 28, 2024

/azp run Linux GPU CI Pipeline

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@skottmckay skottmckay requested a review from a team as a code owner March 1, 2024 10:42
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.

Really thanks!

@skottmckay skottmckay merged commit db59cec into main Mar 6, 2024
95 checks passed
@skottmckay skottmckay deleted the skottmckay/UseW4ForCudaEPBuild branch March 6, 2024 05:03
zz002 pushed a commit to zz002/onnxruntime that referenced this pull request Mar 7, 2024
### Description
<!-- Describe your changes. -->
Address warnings so all the ORT projects build with /W4 on Windows.

Mainly 
- unused parameters
- variables shadowing other ones

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
microsoft#19588 started on this.
chilo-ms added a commit that referenced this pull request Apr 2, 2024
Previous [PR
](#19663 msvc
compiler warning level from set_msvc_c_cpp_compiler_warning_level(3) to
set_msvc_c_cpp_compiler_warning_level(4) when using CUDA EP (it also
applies to TRT EP).
Some warnings still need to be addressed in TRT EP code.
TedThemistokleous pushed a commit to TedThemistokleous/onnxruntime that referenced this pull request May 7, 2024
Previous [PR
](microsoft#19663 msvc
compiler warning level from set_msvc_c_cpp_compiler_warning_level(3) to
set_msvc_c_cpp_compiler_warning_level(4) when using CUDA EP (it also
applies to TRT EP).
Some warnings still need to be addressed in TRT EP code.
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