-
Notifications
You must be signed in to change notification settings - Fork 372
Add support for TensorRT-RTX #3753
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
Open
lanluo-nvidia
wants to merge
14
commits into
main
Choose a base branch
from
lluo/rtx_pr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,069
−806
Open
Changes from 7 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e1a1731
initial check in for tensorrt rtx
lanluo-nvidia 7d34b49
LD_LIBRARY_PATH fix for windows smoke test
lanluo-nvidia 184c84c
resolve comments
lanluo-nvidia cf80997
change the pyproject.toml to make dependencies dynamic
lanluo-nvidia 7727fc8
add documentation
lanluo-nvidia e31afc8
Merge branch 'main' into lluo/rtx_pr
lanluo-nvidia 8eee6af
resolve merge conflict
lanluo-nvidia bfd9d3f
resolve comments
lanluo-nvidia 74f7464
replace fx.observer
lanluo-nvidia edfd752
resolve comments
lanluo-nvidia 97d6432
test
lanluo-nvidia 91d9c38
Merge branch 'main' into lluo/rtx_pr
lanluo-nvidia f7b6c9a
merge main to the branch
lanluo-nvidia 6c72548
add skip test for rtx
lanluo-nvidia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
install_tensorrt_rtx() { | ||
if [[ ${USE_TRT_RTX} == true ]]; then | ||
install_wheel_or_not=${1:-false} | ||
echo "It is the tensorrt-rtx build, install tensorrt-rtx with install_wheel_or_not:${install_wheel_or_not}" | ||
PLATFORM=$(python -c "import sys; print(sys.platform)") | ||
echo "PLATFORM: $PLATFORM" | ||
# PYTHON_VERSION is always set in the CI environment, add this check for local testing | ||
if [ -z "$PYTHON_VERSION" ]; then | ||
echo "Error: PYTHON_VERSION environment variable is not set or empty. example format: export PYTHON_VERSION=3.11" | ||
exit 1 | ||
fi | ||
|
||
# python version is like 3.11, we need to convert it to cp311 | ||
CPYTHON_TAG="cp${PYTHON_VERSION//./}" | ||
if [[ ${PLATFORM} == win32 ]]; then | ||
curl -L https://developer.nvidia.com/downloads/trt/rtx_sdk/secure/1.0/TensorRT-RTX-1.0.0.21.Windows.win10.cuda-12.9.zip -o TensorRT-RTX-1.0.0.21.Windows.win10.cuda-12.9.zip | ||
unzip TensorRT-RTX-1.0.0.21.Windows.win10.cuda-12.9.zip | ||
rtx_lib_dir=${PWD}/TensorRT-RTX-1.0.0.21/lib | ||
export PATH=${rtx_lib_dir}:$PATH | ||
echo "PATH: $PATH" | ||
if [[ ${install_wheel_or_not} == true ]]; then | ||
pip install TensorRT-RTX-1.0.0.21/python/tensorrt_rtx-1.0.0.21-${CPYTHON_TAG}-none-win_amd64.whl | ||
lanluo-nvidia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
fi | ||
else | ||
curl -L https://developer.nvidia.com/downloads/trt/rtx_sdk/secure/1.0/TensorRT-RTX-1.0.0.21.Linux.x86_64-gnu.cuda-12.9.tar.gz -o TensorRT-RTX-1.0.0.21.Linux.x86_64-gnu.cuda-12.9.tar.gz | ||
lanluo-nvidia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
tar -xzf TensorRT-RTX-1.0.0.21.Linux.x86_64-gnu.cuda-12.9.tar.gz | ||
rtx_lib_dir=${PWD}/TensorRT-RTX-1.0.0.21/lib | ||
export LD_LIBRARY_PATH=${rtx_lib_dir}:$LD_LIBRARY_PATH | ||
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH" | ||
if [[ ${install_wheel_or_not} == true ]]; then | ||
pip install TensorRT-RTX-1.0.0.21/python/tensorrt_rtx-1.0.0.21-${CPYTHON_TAG}-none-linux_x86_64.whl | ||
fi | ||
fi | ||
else | ||
echo "It is the standard tensorrt build, skip install tensorrt-rtx" | ||
fi | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.