Skip to content

Adding few updates for ROCm #613

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 12, 2021
Merged

Adding few updates for ROCm #613

merged 2 commits into from
Mar 12, 2021

Conversation

pruthvistony
Copy link
Contributor

  • Handling MacOS and Windows case
  • Handling LibTorch case

- Handling MacOS and Windows case
- Handling LibTorch case
@netlify
Copy link

netlify bot commented Mar 8, 2021

Deploy preview for pytorch-dot-org-preview processing.

Building with commit 39ba26d

https://app.netlify.com/sites/pytorch-dot-org-preview/deploys/6046f841f59ab40008178136

@pruthvistony
Copy link
Contributor Author

@seemethere @malfet @jeffdaily @sunway513
Please review

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

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

Thank you for the cleanups, but do not make platform specific changes for build-from-source instructions.
Also, for MacOS platform common pattern is to provide instructions for installing CPU packages and mention in comment that accelerated package is not available on the platform

Comment on lines 248 to 252
"stable,source,macos,rocm4.0,python":
"<b>NOTE:</b> ROCm is not available on MacOS",

"stable,source,windows,rocm4.0,python":
"<b>NOTE:</b> ROCm is not available on Windows",
Copy link
Contributor

Choose a reason for hiding this comment

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

All build from source requests should just redirect to github.

Suggested change
"stable,source,macos,rocm4.0,python":
"<b>NOTE:</b> ROCm is not available on MacOS",
"stable,source,windows,rocm4.0,python":
"<b>NOTE:</b> ROCm is not available on Windows",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -255,7 +261,7 @@ function commandMessage(key) {
"Download here (Pre-cxx11 ABI): <br/><a href='https://download.pytorch.org/libtorch/cu111/libtorch-shared-with-deps-1.8.0%2Bcu111.zip'>https://download.pytorch.org/libtorch/cu111/libtorch-shared-with-deps-1.8.0%2Bcu11.zip</a><br/><br> Download here (cxx11 ABI): <br/><a href='https://download.pytorch.org/libtorch/cu111/libtorch-cxx11-abi-shared-with-deps-1.8.0%2Bcu111.zip'>https://download.pytorch.org/libtorch/cu111/libtorch-cxx11-abi-shared-with-deps-1.8.0%2Bcu111.zip</a>",

"stable,libtorch,linux,rocm4.0,cplusplus":
"LibTorch binaries are not available for ROCm, please build it from source",
"LibTorch binaries are not yet available for ROCm",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please leave "build it from source" sentence, as this is the only way for developer to get "LibTorch binaries"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -363,7 +369,7 @@ function commandMessage(key) {
"Download here (Pre-cxx11 ABI): <br/><a href='https://download.pytorch.org/libtorch/nightly/cu111/libtorch-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu111/libtorch-shared-with-deps-latest.zip</a><br/><br> Download here (cxx11 ABI): <br/><a href='https://download.pytorch.org/libtorch/nightly/cu111/libtorch-cxx11-abi-shared-with-deps-latest.zip'>https://download.pytorch.org/libtorch/nightly/cu111/libtorch-cxx11-abi-shared-with-deps-latest.zip</a>",

"preview,libtorch,linux,rocm4.0,cplusplus":
"<b>NOTE:</b> Conda packages are not currently available for ROCm, please use pip instead<br />",
"LibTorch binaries are not yet available for ROCm",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"LibTorch binaries are not yet available for ROCm",
"LibTorch binaries are not yet available for ROCm, please build them from source",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment on lines 327 to 333
"pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html<br /># ROCm is not available on MacOS",
"<b>NOTE:</b> ROCm is not available on MacOS",
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is not necessary, as it follows the common pattern for MacOS platform, where all instruction point to CPU only package and in the comment mention that compute platform is not available

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -375,7 +381,7 @@ function commandMessage(key) {
"MacOS binaries do not support CUDA. Download CPU libtorch here: <br/><a href='https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip'> https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip </a>",

"preview,libtorch,macos,rocm4.0,cplusplus":
"ROCm is not available on MacOS. Download CPU libtorch here: <br/><a href='https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip'> https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip </a>",
"<b>NOTE:</b> ROCm is not available on MacOS",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't change this message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@malfet malfet merged commit 8e00d10 into pytorch:site Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants