-
Notifications
You must be signed in to change notification settings - Fork 164
Installer Update with Cuda 12, Latest Trt support #285
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
base: main
Are you sure you want to change the base?
Conversation
The key changes made in the updated installation script~: 1. **Refactoring and Simplification**: The updated script has been refactored for better readability and maintainability. Functions like `get_installed_version` and `install_package` are introduced to reduce code repetition and make the script more modular. 2. **Version Checks and Updates**: - The `tensorrt` package version has been updated from `9.0.1.post11.dev4` to `9.3.0.post12.dev1`. This change indicates a significant version update, possibly including new features, bug fixes, and performance improvements. - The CUDA Deep Neural Network library (`nvidia-cudnn-cu11`) dependency has been replaced with `nvidia-cudnn-cu12` in the updated script, suggesting a move to support newer CUDA versions (`cu12` instead of `cu11`). However, there seems to be a discrepancy in the version handling (`8.9.7.29` vs. `8.9.6.50`) that might be a typo or an intentional downgrade for compatibility reasons. 3. **Improved Package Management**: - The updated script includes more sophisticated logic for managing package installations, including handling uninstallation of previous versions if needed, before installing a new version. This is especially evident in the handling of the `tensorrt` and `nvidia-cudnn-cu12` packages. - The addition of `no_cache_dir=True` to all `install_package` calls to ensure the latest versions are fetched and to avoid potential conflicts with cached packages. 4. **Simplified Dependency Handling**: - The dependencies for ONNX Graph Surgeon and Polygraphy are handled more straightforwardly in the updated script, with specific versions for dependent packages like `protobuf`. 5. **Error Handling and Robustness**: The introduction of the `get_installed_version` function allows for more robust error handling by checking if a package is installed and obtaining its version before attempting to install or uninstall. This reduces the risk of errors during the installation process.
ranareehanaslam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvidia-cudnn-cu12 check version match 8.9.6.50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might reccomend reconsidering the get-intsalled-version function defaults (no_cache_dir gets passed to the function with true rather than being default) Otherwise good code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Against whitespace changes
ice-fly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Othewise excellent pull request, reccomend approval
The key changes made in the updated installation script~:
Refactoring and Simplification: The updated script has been refactored for better readability and maintainability. Functions like
get_installed_versionandinstall_packageare introduced to reduce code repetition and make the script more modular.Version Checks and Updates:
tensorrtpackage version has been updated from9.0.1.post11.dev4to9.3.0.post12.dev1. This change indicates a significant version update, possibly including new features, bug fixes, and performance improvements.nvidia-cudnn-cu11) dependency has been replaced withnvidia-cudnn-cu12in the updated script, suggesting a move to support newer CUDA versions (cu12instead ofcu11). However, there seems to be a discrepancy in the version handling (8.9.7.29vs.8.9.6.50) that might be a typo or an intentional downgrade for compatibility reasons.Improved Package Management:
tensorrtandnvidia-cudnn-cu12packages.no_cache_dir=Trueto allinstall_packagecalls to ensure the latest versions are fetched and to avoid potential conflicts with cached packages.Simplified Dependency Handling:
protobuf.Error Handling and Robustness: The introduction of the
get_installed_versionfunction allows for more robust error handling by checking if a package is installed and obtaining its version before attempting to install or uninstall. This reduces the risk of errors during the installation process.