File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,9 @@ jobs:
105
105
python ./external-builds/pytorch/pytorch_audio_repo.py checkout \
106
106
--repo ${{ env.CHECKOUT_ROOT }}/audio \
107
107
--repo-hashtag main
108
- # TODO(#910): Support torchvision on Windows
109
- # python ./external-builds/pytorch/pytorch_vision_repo.py checkout
108
+ python ./external-builds/pytorch/pytorch_vision_repo.py checkout \
109
+ --repo ${{ env.CHECKOUT_ROOT }}/vision \
110
+ --repo-hashtag main
110
111
111
112
- name : Determine optional arguments passed to `build_prod_wheels.py`
112
113
if : ${{ inputs.rocm_version }}
@@ -128,6 +129,7 @@ jobs:
128
129
--index-url "${{ inputs.cloudfront_url }}/${{ inputs.amdgpu_family }}/" ^
129
130
--pytorch-dir ${{ env.CHECKOUT_ROOT }}/torch ^
130
131
--pytorch-audio-dir ${{ env.CHECKOUT_ROOT }}/audio ^
132
+ --pytorch-vision-dir ${{ env.CHECKOUT_ROOT }}/vision ^
131
133
--clean ^
132
134
--output-dir ${{ env.PACKAGE_DIST_DIR }} ^
133
135
${{ env.optional_build_prod_arguments }}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ patches locally until they can be upstreamed. See the
25
25
| ------------------------ | ------------- | --------------------------------------------------------------------- |
26
26
| PyTorch | ✅ Supported | ✅ Supported |
27
27
| torchaudio | ✅ Supported | ✅ Supported |
28
- | torchvision | ✅ Supported | 🟡 In progress ( [ # 910 ] ( https://github.com/ROCm/TheRock/issues/910 ) ) |
28
+ | torchvision | ✅ Supported | ✅ Supported |
29
29
| Flash attention (Triton) | ✅ Supported | 🟡 In progress ([ #1040 ] ( https://github.com/ROCm/TheRock/issues/1040 ) ) |
30
30
31
31
## Build instructions
@@ -79,7 +79,7 @@ Now checkout repositories:
79
79
``` bash
80
80
python pytorch_torch_repo.py checkout --repo C:/b/pytorch --repo-hashtag main
81
81
python pytorch_audio_repo.py checkout --repo C:/b/audio --repo-hashtag main
82
- # TODO(#910): Support torchvision on Windows
82
+ python pytorch_vision_repo.py checkout --repo C:/b/vision --repo-hashtag main
83
83
```
84
84
85
85
Now note the gfx target you want to build for and then...
@@ -107,6 +107,7 @@ mix/match build steps.
107
107
--install-rocm --index-url https://d2awnip2yjpvqn.cloudfront.net/v2/gfx110X-dgpu/ \
108
108
--pytorch-dir C:/b/pytorch \
109
109
--pytorch-audio-dir C:/b/audio \
110
+ --pytorch-vision-dir C:/b/vision \
110
111
--output-dir %HOME%/tmp/pyout
111
112
```
112
113
Original file line number Diff line number Diff line change @@ -710,6 +710,13 @@ def do_build_pytorch_vision(
710
710
}
711
711
)
712
712
713
+ if is_windows :
714
+ env .update (
715
+ {
716
+ "DISTUTILS_USE_SDK" : "1" ,
717
+ }
718
+ )
719
+
713
720
remove_dir_if_exists (pytorch_vision_dir / "dist" )
714
721
if args .clean :
715
722
remove_dir_if_exists (pytorch_vision_dir / "build" )
You can’t perform that action at this time.
0 commit comments