forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Easy] Add ROCm support to nightly pull tool (pytorch#141282)
Pull Request resolved: pytorch#141282 Approved by: https://github.com/malfet ghstack dependencies: pytorch#143263
- Loading branch information
1 parent
8059d56
commit c4bff71
Showing
4 changed files
with
64 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -78,7 +78,9 @@ git clone [email protected]:<USERNAME>/pytorch.git | |
cd pytorch | ||
git remote add upstream [email protected]:pytorch/pytorch.git | ||
|
||
make setup-env # or make setup-env-cuda for pre-built CUDA binaries | ||
make setup-env | ||
# Or run `make setup-env-cuda` for pre-built CUDA binaries | ||
# Or run `make setup-env-rocm` for pre-built ROCm binaries | ||
source venv/bin/activate # or `& .\venv\Scripts\Activate.ps1` on Windows | ||
``` | ||
|
||
|
@@ -193,6 +195,13 @@ To install the nightly binaries built with CUDA, you can pass in the flag `--cud | |
source venv/bin/activate # or `& .\venv\Scripts\Activate.ps1` on Windows | ||
``` | ||
|
||
To install the nightly binaries built with ROCm, you can pass in the flag `--rocm`: | ||
|
||
```bash | ||
./tools/nightly.py checkout -b my-nightly-branch --rocm | ||
source venv/bin/activate # or `& .\venv\Scripts\Activate.ps1` on Windows | ||
``` | ||
|
||
You can also use this tool to pull the nightly commits into the current branch: | ||
|
||
```bash | ||
|
This file contains 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 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