Skip to content

Conversation

ishwar-raut1
Copy link
Contributor

@ishwar-raut1 ishwar-raut1 commented Jul 11, 2025

Description

Changes from win-onnxruntime to onnxruntime
Fix the build break.

@jywu-msft jywu-msft requested review from Copilot and chilo-ms July 11, 2025 17:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces references to win-onnxruntime with onnxruntime, restores build integrity, and adds auto EP selection support for the TensorRT RTX provider.

  • Added a helper and test (AutoEp_PreferGpu) to verify automatic GPU EP selection.
  • Exported new symbols (CreateEpFactories, ReleaseEpFactory) and implemented OrtEpFactory support.
  • Updated the CUDAPinnedAllocator constructor argument order to match the new signature.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
onnxruntime/test/providers/nv_tensorrt_rtx/nv_basic_test.cc Added SessionHasEp helper and AutoEp_PreferGpu test
onnxruntime/core/providers/nv_tensorrt_rtx/symbols.def Exported CreateEpFactories and ReleaseEpFactory symbols
onnxruntime/core/providers/nv_tensorrt_rtx/nv_provider_factory.cc Implemented CreateIExecutionProvider override and OrtEpFactory functions
onnxruntime/core/providers/nv_tensorrt_rtx/nv_execution_provider.cc Updated argument order for CUDAPinnedAllocator construction
Comments suppressed due to low confidence (3)

onnxruntime/test/providers/nv_tensorrt_rtx/nv_basic_test.cc:409

  • This test only works on Windows but isn’t guarded; wrap it in a #ifdef _WIN32 to avoid failures on other platforms.
TEST(NvExecutionProviderTest, AutoEp_PreferGpu) {

onnxruntime/core/providers/nv_tensorrt_rtx/nv_provider_factory.cc:238

  • Public factory functions should use the ORT_API export macro (as GetProvider does) to ensure consistent symbol visibility across platforms.
OrtStatus* CreateEpFactories(const char* /*registration_name*/, const OrtApiBase* ort_api_base,

onnxruntime/core/providers/nv_tensorrt_rtx/nv_provider_factory.cc:258

  • Likewise, ReleaseEpFactory should be annotated with ORT_API to match the export conventions and prevent missing-symbol issues.
OrtStatus* ReleaseEpFactory(OrtEpFactory* factory) {

@jywu-msft jywu-msft changed the title !. Changes from the win-ort [NV RTX EP] Upstream changes from the win-ort Jul 11, 2025
@jywu-msft
Copy link
Member

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows x64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline

Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@fs-eire
Copy link
Contributor

fs-eire commented Jul 14, 2025

Merged to latest main to fix build failures.

@fs-eire
Copy link
Contributor

fs-eire commented Jul 14, 2025

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows x64 QNN CI Pipeline

Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@jywu-msft
Copy link
Member

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows x64 QNN CI Pipeline

Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@chilo-ms
Copy link
Contributor

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows x64 QNN CI Pipeline

Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@jywu-msft
Copy link
Member

pls fix lint error

@jywu-msft
Copy link
Member

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows x64 QNN CI Pipeline

Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@jywu-msft jywu-msft merged commit 798d890 into microsoft:main Jul 17, 2025
87 checks passed
@snnn
Copy link
Member

snnn commented Jul 25, 2025

Hi there! We haven't cut the release branch for this version yet, so I'm removing the release:1.23.0 label for now to keep things tidy. Thanks so much for your contribution! We'll make sure this gets included when the release is prepared. 🤖

qti-yuduo pushed a commit to CodeLinaro/onnxruntime that referenced this pull request Aug 8, 2025
### Description
<!-- Describe your changes. -->
Changes from win-onnxruntime to onnxruntime 
Fix the build break.

---------

Co-authored-by: Yulong Wang <[email protected]>
sanketkaleoss pushed a commit to sanketkaleoss/onnxruntime that referenced this pull request Aug 11, 2025
### Description
<!-- Describe your changes. -->
Changes from win-onnxruntime to onnxruntime 
Fix the build break.

---------

Co-authored-by: Yulong Wang <[email protected]>
@ishwar-raut1 ishwar-raut1 deleted the iraut/PreferNvEP branch August 18, 2025 09:07
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.

6 participants