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

[TensorRT EP] Refactor TRT version update logic & apply TRT 10.5 #22483

Merged
merged 53 commits into from
Oct 29, 2024

Conversation

yf711
Copy link
Contributor

@yf711 yf711 commented Oct 17, 2024

Description

  • Leverage template common-variables.yml and reduce usage of hardcoded trt_version
    common_trt_version: '10.5.0.18'
    # As for Debian installation, replace '-1.' by '-1+' when assigning trt version below
    linux_trt_version_cuda11: ${{ variables.common_trt_version }}-1.cuda11.8
    linux_trt_version_cuda12: ${{ variables.common_trt_version }}-1.cuda12.6
    win_trt_folder_cuda11: TensorRT-${{ variables.common_trt_version }}.Windows10.x86_64.cuda-11.8
    win_trt_folder_cuda12: TensorRT-${{ variables.common_trt_version }}.Windows10.x86_64.cuda-12.6
    • Among all CI yamls, this PR reduces usage of hardcoding trt_version from 40 to 6, by importing trt_version from common-variables.yml
  • Apply TRT 10.5 and re-enable control flow op test

Motivation and Context

  • Reduce usage of hardcoding trt_version among all CI ymls

Next refactor PR

will work on reducing usage of hardcoding trt_version among .dockerfile, .bat and remaining 2 yml files
(download_win_gpu_library.yml & set-winenv.yml, which are step-template yaml that can't import variables)

@jywu-msft jywu-msft requested review from chilo-ms and removed request for jywu-msft October 21, 2024 16:49
@chilo-ms
Copy link
Contributor

Looks good to me, please help resolve the conflicts.

chilo-ms
chilo-ms previously approved these changes Oct 25, 2024
@yf711 yf711 merged commit 951d9aa into main Oct 29, 2024
194 checks passed
@yf711 yf711 deleted the yifanl/trt_ver_update_1 branch October 29, 2024 16:23
@jywu-msft
Copy link
Member

@yf711 just realized we forgot to update oss parser branch to https://github.com/onnx/onnx-tensorrt/tree/10.5-GA-ORT-DDS

@yf711
Copy link
Contributor Author

yf711 commented Oct 29, 2024

@yf711 just realized we forgot to update oss parser branch to https://github.com/onnx/onnx-tensorrt/tree/10.5-GA-ORT-DDS

will send out PR later today

@yf711
Copy link
Contributor Author

yf711 commented Oct 29, 2024

@yf711 just realized we forgot to update oss parser branch to https://github.com/onnx/onnx-tensorrt/tree/10.5-GA-ORT-DDS

PR to update oss parser branch: #22644

ishwar-raut1 pushed a commit to ishwar-raut1/onnxruntime that referenced this pull request Nov 19, 2024
…rosoft#22483)

### Description
<!-- Describe your changes. -->
* Leverage template `common-variables.yml` and reduce usage of hardcoded
trt_version

https://github.com/microsoft/onnxruntime/blob/8391b24447fcca4c01599b3270255fbf76ac8a21/tools/ci_build/github/azure-pipelines/templates/common-variables.yml#L2-L7
* Among all CI yamls, this PR reduces usage of hardcoding trt_version
from 40 to 6, by importing trt_version from `common-variables.yml`
* Apply TRT 10.5 and re-enable control flow op test


### 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. -->
- Reduce usage of hardcoding trt_version among all CI ymls

### Next refactor PR 
will work on reducing usage of hardcoding trt_version among
`.dockerfile`, `.bat` and remaining 2 yml files
(download_win_gpu_library.yml & set-winenv.yml, which are step-template
yaml that can't import variables)
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