-
Notifications
You must be signed in to change notification settings - Fork 306
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
Conversation
pruthvistony
commented
Mar 8, 2021
- Handling MacOS and Windows case
- Handling LibTorch case
- Handling MacOS and Windows case - Handling LibTorch case
Deploy preview for pytorch-dot-org-preview processing. Building with commit 39ba26d |
@seemethere @malfet @jeffdaily @sunway513 |
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.
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
assets/quick-start-module.js
Outdated
"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", |
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.
All build from source requests should just redirect to github.
"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", |
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.
Done.
assets/quick-start-module.js
Outdated
@@ -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", |
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.
Please leave "build it from source" sentence, as this is the only way for developer to get "LibTorch binaries"
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.
Done
assets/quick-start-module.js
Outdated
@@ -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", |
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.
"LibTorch binaries are not yet available for ROCm", | |
"LibTorch binaries are not yet available for ROCm, please build them from source", |
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.
Done
assets/quick-start-module.js
Outdated
"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", |
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.
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
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.
Done
assets/quick-start-module.js
Outdated
@@ -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", |
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.
Please don't change this message
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.
Done