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

Set default flags nvcc and do not set default compile flags for ROCM EP #19124

Merged
merged 5 commits into from
Jan 14, 2024

Conversation

snnn
Copy link
Member

@snnn snnn commented Jan 13, 2024

Description

Set default flags nvcc and do not set the flags for ROCM EP.

Motivation and Context

  1. To meet a BinSkim requirement for CUDA EP.
    https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA2024EnableSpectreMitigations

  2. The ROCM EP's pipeline is broken since PR Enable Address Sanitizer in CI #19073 . Unit tests failed to load the EP with the following error message:

Failed to load library libonnxruntime_providers_rocm.so with error: /build/Release/libonnxruntime_providers_rocm.so: undefined symbol: vtable for onnxruntime::InsertMaxPoolOutput .

This PR is a hot fix to bring the pipeline back. So far I don't know why the error happened. The symbol "InsertMaxPoolOutput" is in onnxruntime_optimizers. I don't see any EP code references it directly.

@snnn snnn marked this pull request as ready for review January 13, 2024 05:23
@snnn snnn changed the title Set default flags nvcc and do not set ldflags for ROCM EP Set default flags nvcc and do not set default compile flags for ROCM EP Jan 13, 2024
@snnn
Copy link
Member Author

snnn commented Jan 14, 2024

/azp run Windows CPU CI Pipeline

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@snnn snnn merged commit bb4011b into main Jan 14, 2024
100 of 102 checks passed
@snnn snnn deleted the snnn/santi branch January 14, 2024 19:36
mszhanyi pushed a commit that referenced this pull request Jan 15, 2024
…EP (#19124)

### Description
Set default flags nvcc and do not set the flags for ROCM EP. 


### Motivation and Context
1. To meet a BinSkim requirement for CUDA EP.

https://github.com/microsoft/binskim/blob/main/docs/BinSkimRules.md#rule-BA2024EnableSpectreMitigations

2. The ROCM EP's pipeline is broken since PR #19073 . Unit tests failed
to load the EP with the following error message:

Failed to load library libonnxruntime_providers_rocm.so with error:
/build/Release/libonnxruntime_providers_rocm.so: undefined symbol:
vtable for onnxruntime::InsertMaxPoolOutput .

This PR is a hot fix to bring the pipeline back. So far I don't know why
the error happened. The symbol "InsertMaxPoolOutput" is in
onnxruntime_optimizers. I don't see any EP code references it directly.
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