Skip to content

fix: Update Docker build to automatically adapt Torch version #1732

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

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

gs-olive
Copy link
Collaborator

@gs-olive gs-olive commented Mar 10, 2023

Description

  • Build issue encountered in Docker arising from mismatched versions in WORKSPACE and Docker folder
  • Update Dockerfile build process to adapt Torch version from requirements.txt
  • Remove references to Torch version in Docker WORKSPACE file; instead use local Torch version

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • [ x ] My code follows the style guidelines of this project (You can use the linters)
  • [ x ] I have performed a self-review of my own code
  • [ x ] I have commented my code, particularly in hard-to-understand areas and hacks
  • [ x ] I have made corresponding changes to the documentation
  • [ x ] I have added tests to verify my fix or my feature
  • [ x ] New and existing unit tests pass locally with my changes
  • [ x ] I have added the relevant labels to my PR in so that relevant reviewers are notified

@gs-olive gs-olive requested a review from peri044 March 10, 2023 18:24
@gs-olive gs-olive self-assigned this Mar 10, 2023
@gs-olive gs-olive changed the title chore/fix: Ensure Docker Torch version agrees with WORKSPACE chore/fix: Update Docker Torch version to agree with WORKSPACE Mar 10, 2023
@gs-olive gs-olive force-pushed the dockerfile_version_fix branch from 7647c6c to 9dc646d Compare March 10, 2023 22:33
@gs-olive gs-olive requested a review from narendasan March 10, 2023 22:34
@gs-olive gs-olive changed the title chore/fix: Update Docker Torch version to agree with WORKSPACE chore/fix: Update Docker Torch version to auomatically adapt Torch version Mar 10, 2023
@gs-olive gs-olive changed the title chore/fix: Update Docker Torch version to auomatically adapt Torch version chore/fix: Update Docker build to automatically adapt Torch version Mar 10, 2023
Copy link
Collaborator

@narendasan narendasan left a comment

Choose a reason for hiding this comment

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

Add note about the abi

- Build issue encountered in Docker arising from mismatched versions in
WORKSPACE and Docker folder
- Update Dockerfile build process to adapt Torch version from
`requirements.txt`
- Remove references to Torch version in Docker `WORKSPACE` file; instead
use local Torch version
- Update documentation to provide clear instructions about inclusion of
the C++11 ABI build (disabled by default)
@gs-olive gs-olive force-pushed the dockerfile_version_fix branch from 9dc646d to ea6bdf4 Compare March 17, 2023 19:24
@gs-olive gs-olive requested a review from narendasan March 17, 2023 19:24
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add build args for tensorrt and cudnn versions

Copy link
Collaborator

Choose a reason for hiding this comment

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

use 22.04 base

@gs-olive gs-olive changed the title chore/fix: Update Docker build to automatically adapt Torch version fix: Update Docker build to automatically adapt Torch version Mar 22, 2023
@gs-olive gs-olive added the WIP Work is in progress, pull request should not be merged yet label Mar 24, 2023
- Update requirements to include `packaging` for FX compatibility checks
- Add optional build argument for compilation with CXX11 ABI
- Improve documentation regarding build-args
@github-actions github-actions bot added the component: api [Python] Issues re: Python API label Mar 28, 2023
@gs-olive gs-olive added component: build system Issues re: Build system and removed WIP Work is in progress, pull request should not be merged yet component: api [Python] Issues re: Python API labels Mar 28, 2023
@github-actions github-actions bot requested a review from narendasan March 28, 2023 03:17
@gs-olive
Copy link
Collaborator Author

22.04 base upgrade and tensorrt/cuddn build args to be addressed in Issue #1782

@gs-olive gs-olive merged commit c2126b1 into pytorch:main Mar 28, 2023
@gs-olive gs-olive deleted the dockerfile_version_fix branch March 28, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants