Lines Matching +full:working +full:- +full:directory
5 name: windows-binary-conda
11 - nightly
14 # Release candidate tags look like: v1.11.0-rc1
15 - v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
16 - 'ciflow/binaries/*'
17 - 'ciflow/binaries_conda/*'
22 ALPINE_IMAGE: "308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine"
24 AWS_DEFAULT_REGION: us-east-1
25 BUILD_ENVIRONMENT: windows-binary-conda
31 …group: windows-binary-conda-${{ github.event.pull_request.number || github.ref_name }}-${{ github.…
32 cancel-in-progress: true
35 conda-py3_8-cpu-build:
37 runs-on: windows.4xlarge
38 timeout-minutes: 240
50 - name: Display EC2 information
53 set -euo pipefail
56 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
58 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
60 echo "ami-id: $(get_ec2_metadata ami-id)"
61 echo "instance-id: $(get_ec2_metadata instance-id)"
62 echo "instance-type: $(get_ec2_metadata instance-type)"
63 echo "system info $(uname -a)"
64 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
65 uses: pytorch/test-infra/.github/actions/setup-ssh@main
66 continue-on-error: true
68 github-secret: ${{ secrets.GITHUB_TOKEN }}
69 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
70 - name: Enable long paths on Windows
73 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
76 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
77 continue-on-error: true
80 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
83 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
87 - name: Populate binary env
93 - name: Checkout PyTorch
94 uses: malfet/checkout@silent-checkout
98 quiet-checkout: true
99 - name: Clean PyTorch checkout
102 git clean -fxd
103 working-directory: pytorch
104 - name: Checkout pytorch/builder
105 uses: malfet/checkout@silent-checkout
111 quiet-checkout: true
112 - name: Clean pytorch/builder checkout
115 git clean -fxd
116 working-directory: builder
117 - name: Populate binary env
121 - name: Build PyTorch binary
125 - uses: actions/upload-artifact@v3
128 name: conda-py3_8-cpu
129 retention-days: 14
130 if-no-files-found: error
132 - name: Wait until all sessions have drained
134 working-directory: pytorch
136 timeout-minutes: 120
139 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
141 working-directory: pytorch
145 conda-py3_8-cpu-test: # Testing
147 needs: conda-py3_8-cpu-build
148 runs-on: windows.4xlarge.nonephemeral
149 timeout-minutes: 240
161 - name: Display EC2 information
164 set -euo pipefail
167 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
169 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
171 echo "ami-id: $(get_ec2_metadata ami-id)"
172 echo "instance-id: $(get_ec2_metadata instance-id)"
173 echo "instance-type: $(get_ec2_metadata instance-type)"
174 echo "system info $(uname -a)"
175 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
176 uses: pytorch/test-infra/.github/actions/setup-ssh@main
177 continue-on-error: true
179 github-secret: ${{ secrets.GITHUB_TOKEN }}
180 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
181 - name: Enable long paths on Windows
184 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
187 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
188 continue-on-error: true
191 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
194 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
198 - name: Populate binary env
204 - uses: actions/download-artifact@v3
207 name: conda-py3_8-cpu
209 - name: Checkout PyTorch
210 uses: malfet/checkout@silent-checkout
214 quiet-checkout: true
215 - name: Clean PyTorch checkout
218 git clean -fxd
219 working-directory: pytorch
220 - name: Checkout pytorch/builder
221 uses: malfet/checkout@silent-checkout
227 quiet-checkout: true
228 - name: Clean pytorch/builder checkout
231 git clean -fxd
232 working-directory: builder
233 - name: Populate binary env
237 - name: Test PyTorch binary
241 - name: Wait until all sessions have drained
243 working-directory: pytorch
245 timeout-minutes: 120
248 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
250 working-directory: pytorch
254 conda-py3_8-cpu-upload: # Uploading
257 id-token: write
259 needs: conda-py3_8-cpu-test
269 build_name: conda-py3_8-cpu
271 github-token: ${{ secrets.GITHUB_TOKEN }}
272 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
273 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
274 uses: ./.github/workflows/_binary-upload.yml
275 conda-py3_8-cuda11_8-build:
277 runs-on: windows.4xlarge
278 timeout-minutes: 240
291 - name: Display EC2 information
294 set -euo pipefail
297 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
299 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
301 echo "ami-id: $(get_ec2_metadata ami-id)"
302 echo "instance-id: $(get_ec2_metadata instance-id)"
303 echo "instance-type: $(get_ec2_metadata instance-type)"
304 echo "system info $(uname -a)"
305 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
306 uses: pytorch/test-infra/.github/actions/setup-ssh@main
307 continue-on-error: true
309 github-secret: ${{ secrets.GITHUB_TOKEN }}
310 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
311 - name: Enable long paths on Windows
314 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
317 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
318 continue-on-error: true
321 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
324 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
328 - name: Populate binary env
334 - name: Checkout PyTorch
335 uses: malfet/checkout@silent-checkout
339 quiet-checkout: true
340 - name: Clean PyTorch checkout
343 git clean -fxd
344 working-directory: pytorch
345 - name: Checkout pytorch/builder
346 uses: malfet/checkout@silent-checkout
352 quiet-checkout: true
353 - name: Clean pytorch/builder checkout
356 git clean -fxd
357 working-directory: builder
358 - name: Populate binary env
362 - name: Build PyTorch binary
366 - uses: actions/upload-artifact@v3
369 name: conda-py3_8-cuda11_8
370 retention-days: 14
371 if-no-files-found: error
373 - name: Wait until all sessions have drained
375 working-directory: pytorch
377 timeout-minutes: 120
380 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
382 working-directory: pytorch
386 conda-py3_8-cuda11_8-test: # Testing
388 needs: conda-py3_8-cuda11_8-build
389 runs-on: windows.8xlarge.nvidia.gpu
390 timeout-minutes: 240
403 - name: Display EC2 information
406 set -euo pipefail
409 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
411 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
413 echo "ami-id: $(get_ec2_metadata ami-id)"
414 echo "instance-id: $(get_ec2_metadata instance-id)"
415 echo "instance-type: $(get_ec2_metadata instance-type)"
416 echo "system info $(uname -a)"
417 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
418 uses: pytorch/test-infra/.github/actions/setup-ssh@main
419 continue-on-error: true
421 github-secret: ${{ secrets.GITHUB_TOKEN }}
422 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
423 - name: Enable long paths on Windows
426 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
429 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
430 continue-on-error: true
433 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
436 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
440 - name: Populate binary env
446 - uses: actions/download-artifact@v3
449 name: conda-py3_8-cuda11_8
451 - name: Checkout PyTorch
452 uses: malfet/checkout@silent-checkout
456 quiet-checkout: true
457 - name: Clean PyTorch checkout
460 git clean -fxd
461 working-directory: pytorch
462 - name: Checkout pytorch/builder
463 uses: malfet/checkout@silent-checkout
469 quiet-checkout: true
470 - name: Clean pytorch/builder checkout
473 git clean -fxd
474 working-directory: builder
475 - name: Populate binary env
479 - name: Test PyTorch binary
483 - name: Wait until all sessions have drained
485 working-directory: pytorch
487 timeout-minutes: 120
490 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
492 working-directory: pytorch
496 conda-py3_8-cuda11_8-upload: # Uploading
499 id-token: write
501 needs: conda-py3_8-cuda11_8-test
512 build_name: conda-py3_8-cuda11_8
514 github-token: ${{ secrets.GITHUB_TOKEN }}
515 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
516 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
517 uses: ./.github/workflows/_binary-upload.yml
518 conda-py3_8-cuda12_1-build:
520 runs-on: windows.4xlarge
521 timeout-minutes: 240
534 - name: Display EC2 information
537 set -euo pipefail
540 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
542 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
544 echo "ami-id: $(get_ec2_metadata ami-id)"
545 echo "instance-id: $(get_ec2_metadata instance-id)"
546 echo "instance-type: $(get_ec2_metadata instance-type)"
547 echo "system info $(uname -a)"
548 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
549 uses: pytorch/test-infra/.github/actions/setup-ssh@main
550 continue-on-error: true
552 github-secret: ${{ secrets.GITHUB_TOKEN }}
553 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
554 - name: Enable long paths on Windows
557 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
560 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
561 continue-on-error: true
564 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
567 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
571 - name: Populate binary env
577 - name: Checkout PyTorch
578 uses: malfet/checkout@silent-checkout
582 quiet-checkout: true
583 - name: Clean PyTorch checkout
586 git clean -fxd
587 working-directory: pytorch
588 - name: Checkout pytorch/builder
589 uses: malfet/checkout@silent-checkout
595 quiet-checkout: true
596 - name: Clean pytorch/builder checkout
599 git clean -fxd
600 working-directory: builder
601 - name: Populate binary env
605 - name: Build PyTorch binary
609 - uses: actions/upload-artifact@v3
612 name: conda-py3_8-cuda12_1
613 retention-days: 14
614 if-no-files-found: error
616 - name: Wait until all sessions have drained
618 working-directory: pytorch
620 timeout-minutes: 120
623 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
625 working-directory: pytorch
629 conda-py3_8-cuda12_1-test: # Testing
631 needs: conda-py3_8-cuda12_1-build
632 runs-on: windows.8xlarge.nvidia.gpu
633 timeout-minutes: 240
646 - name: Display EC2 information
649 set -euo pipefail
652 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
654 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
656 echo "ami-id: $(get_ec2_metadata ami-id)"
657 echo "instance-id: $(get_ec2_metadata instance-id)"
658 echo "instance-type: $(get_ec2_metadata instance-type)"
659 echo "system info $(uname -a)"
660 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
661 uses: pytorch/test-infra/.github/actions/setup-ssh@main
662 continue-on-error: true
664 github-secret: ${{ secrets.GITHUB_TOKEN }}
665 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
666 - name: Enable long paths on Windows
669 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
672 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
673 continue-on-error: true
676 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
679 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
683 - name: Populate binary env
689 - uses: actions/download-artifact@v3
692 name: conda-py3_8-cuda12_1
694 - name: Checkout PyTorch
695 uses: malfet/checkout@silent-checkout
699 quiet-checkout: true
700 - name: Clean PyTorch checkout
703 git clean -fxd
704 working-directory: pytorch
705 - name: Checkout pytorch/builder
706 uses: malfet/checkout@silent-checkout
712 quiet-checkout: true
713 - name: Clean pytorch/builder checkout
716 git clean -fxd
717 working-directory: builder
718 - name: Populate binary env
722 - name: Test PyTorch binary
726 - name: Wait until all sessions have drained
728 working-directory: pytorch
730 timeout-minutes: 120
733 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
735 working-directory: pytorch
739 conda-py3_8-cuda12_1-upload: # Uploading
742 id-token: write
744 needs: conda-py3_8-cuda12_1-test
755 build_name: conda-py3_8-cuda12_1
757 github-token: ${{ secrets.GITHUB_TOKEN }}
758 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
759 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
760 uses: ./.github/workflows/_binary-upload.yml
761 conda-py3_8-cuda12_4-build:
763 runs-on: windows.4xlarge
764 timeout-minutes: 240
777 - name: Display EC2 information
780 set -euo pipefail
783 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
785 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
787 echo "ami-id: $(get_ec2_metadata ami-id)"
788 echo "instance-id: $(get_ec2_metadata instance-id)"
789 echo "instance-type: $(get_ec2_metadata instance-type)"
790 echo "system info $(uname -a)"
791 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
792 uses: pytorch/test-infra/.github/actions/setup-ssh@main
793 continue-on-error: true
795 github-secret: ${{ secrets.GITHUB_TOKEN }}
796 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
797 - name: Enable long paths on Windows
800 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
803 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
804 continue-on-error: true
807 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
810 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
814 - name: Populate binary env
820 - name: Checkout PyTorch
821 uses: malfet/checkout@silent-checkout
825 quiet-checkout: true
826 - name: Clean PyTorch checkout
829 git clean -fxd
830 working-directory: pytorch
831 - name: Checkout pytorch/builder
832 uses: malfet/checkout@silent-checkout
838 quiet-checkout: true
839 - name: Clean pytorch/builder checkout
842 git clean -fxd
843 working-directory: builder
844 - name: Populate binary env
848 - name: Build PyTorch binary
852 - uses: actions/upload-artifact@v3
855 name: conda-py3_8-cuda12_4
856 retention-days: 14
857 if-no-files-found: error
859 - name: Wait until all sessions have drained
861 working-directory: pytorch
863 timeout-minutes: 120
866 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
868 working-directory: pytorch
872 conda-py3_8-cuda12_4-test: # Testing
874 needs: conda-py3_8-cuda12_4-build
875 runs-on: windows.8xlarge.nvidia.gpu
876 timeout-minutes: 240
889 - name: Display EC2 information
892 set -euo pipefail
895 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
897 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
899 echo "ami-id: $(get_ec2_metadata ami-id)"
900 echo "instance-id: $(get_ec2_metadata instance-id)"
901 echo "instance-type: $(get_ec2_metadata instance-type)"
902 echo "system info $(uname -a)"
903 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
904 uses: pytorch/test-infra/.github/actions/setup-ssh@main
905 continue-on-error: true
907 github-secret: ${{ secrets.GITHUB_TOKEN }}
908 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
909 - name: Enable long paths on Windows
912 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
915 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
916 continue-on-error: true
919 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
922 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
926 - name: Populate binary env
932 - uses: actions/download-artifact@v3
935 name: conda-py3_8-cuda12_4
937 - name: Checkout PyTorch
938 uses: malfet/checkout@silent-checkout
942 quiet-checkout: true
943 - name: Clean PyTorch checkout
946 git clean -fxd
947 working-directory: pytorch
948 - name: Checkout pytorch/builder
949 uses: malfet/checkout@silent-checkout
955 quiet-checkout: true
956 - name: Clean pytorch/builder checkout
959 git clean -fxd
960 working-directory: builder
961 - name: Populate binary env
965 - name: Test PyTorch binary
969 - name: Wait until all sessions have drained
971 working-directory: pytorch
973 timeout-minutes: 120
976 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
978 working-directory: pytorch
982 conda-py3_8-cuda12_4-upload: # Uploading
985 id-token: write
987 needs: conda-py3_8-cuda12_4-test
998 build_name: conda-py3_8-cuda12_4
1000 github-token: ${{ secrets.GITHUB_TOKEN }}
1001 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
1002 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
1003 uses: ./.github/workflows/_binary-upload.yml
1004 conda-py3_9-cpu-build:
1006 runs-on: windows.4xlarge
1007 timeout-minutes: 240
1019 - name: Display EC2 information
1022 set -euo pipefail
1025 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1027 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1029 echo "ami-id: $(get_ec2_metadata ami-id)"
1030 echo "instance-id: $(get_ec2_metadata instance-id)"
1031 echo "instance-type: $(get_ec2_metadata instance-type)"
1032 echo "system info $(uname -a)"
1033 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1034 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1035 continue-on-error: true
1037 github-secret: ${{ secrets.GITHUB_TOKEN }}
1038 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1039 - name: Enable long paths on Windows
1042 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1045 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1046 continue-on-error: true
1049 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1052 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1056 - name: Populate binary env
1062 - name: Checkout PyTorch
1063 uses: malfet/checkout@silent-checkout
1067 quiet-checkout: true
1068 - name: Clean PyTorch checkout
1071 git clean -fxd
1072 working-directory: pytorch
1073 - name: Checkout pytorch/builder
1074 uses: malfet/checkout@silent-checkout
1080 quiet-checkout: true
1081 - name: Clean pytorch/builder checkout
1084 git clean -fxd
1085 working-directory: builder
1086 - name: Populate binary env
1090 - name: Build PyTorch binary
1094 - uses: actions/upload-artifact@v3
1097 name: conda-py3_9-cpu
1098 retention-days: 14
1099 if-no-files-found: error
1101 - name: Wait until all sessions have drained
1103 working-directory: pytorch
1105 timeout-minutes: 120
1108 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1110 working-directory: pytorch
1114 conda-py3_9-cpu-test: # Testing
1116 needs: conda-py3_9-cpu-build
1117 runs-on: windows.4xlarge.nonephemeral
1118 timeout-minutes: 240
1130 - name: Display EC2 information
1133 set -euo pipefail
1136 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1138 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1140 echo "ami-id: $(get_ec2_metadata ami-id)"
1141 echo "instance-id: $(get_ec2_metadata instance-id)"
1142 echo "instance-type: $(get_ec2_metadata instance-type)"
1143 echo "system info $(uname -a)"
1144 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1145 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1146 continue-on-error: true
1148 github-secret: ${{ secrets.GITHUB_TOKEN }}
1149 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1150 - name: Enable long paths on Windows
1153 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1156 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1157 continue-on-error: true
1160 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1163 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1167 - name: Populate binary env
1173 - uses: actions/download-artifact@v3
1176 name: conda-py3_9-cpu
1178 - name: Checkout PyTorch
1179 uses: malfet/checkout@silent-checkout
1183 quiet-checkout: true
1184 - name: Clean PyTorch checkout
1187 git clean -fxd
1188 working-directory: pytorch
1189 - name: Checkout pytorch/builder
1190 uses: malfet/checkout@silent-checkout
1196 quiet-checkout: true
1197 - name: Clean pytorch/builder checkout
1200 git clean -fxd
1201 working-directory: builder
1202 - name: Populate binary env
1206 - name: Test PyTorch binary
1210 - name: Wait until all sessions have drained
1212 working-directory: pytorch
1214 timeout-minutes: 120
1217 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1219 working-directory: pytorch
1223 conda-py3_9-cpu-upload: # Uploading
1226 id-token: write
1228 needs: conda-py3_9-cpu-test
1238 build_name: conda-py3_9-cpu
1240 github-token: ${{ secrets.GITHUB_TOKEN }}
1241 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
1242 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
1243 uses: ./.github/workflows/_binary-upload.yml
1244 conda-py3_9-cuda11_8-build:
1246 runs-on: windows.4xlarge
1247 timeout-minutes: 240
1260 - name: Display EC2 information
1263 set -euo pipefail
1266 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1268 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1270 echo "ami-id: $(get_ec2_metadata ami-id)"
1271 echo "instance-id: $(get_ec2_metadata instance-id)"
1272 echo "instance-type: $(get_ec2_metadata instance-type)"
1273 echo "system info $(uname -a)"
1274 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1275 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1276 continue-on-error: true
1278 github-secret: ${{ secrets.GITHUB_TOKEN }}
1279 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1280 - name: Enable long paths on Windows
1283 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1286 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1287 continue-on-error: true
1290 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1293 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1297 - name: Populate binary env
1303 - name: Checkout PyTorch
1304 uses: malfet/checkout@silent-checkout
1308 quiet-checkout: true
1309 - name: Clean PyTorch checkout
1312 git clean -fxd
1313 working-directory: pytorch
1314 - name: Checkout pytorch/builder
1315 uses: malfet/checkout@silent-checkout
1321 quiet-checkout: true
1322 - name: Clean pytorch/builder checkout
1325 git clean -fxd
1326 working-directory: builder
1327 - name: Populate binary env
1331 - name: Build PyTorch binary
1335 - uses: actions/upload-artifact@v3
1338 name: conda-py3_9-cuda11_8
1339 retention-days: 14
1340 if-no-files-found: error
1342 - name: Wait until all sessions have drained
1344 working-directory: pytorch
1346 timeout-minutes: 120
1349 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1351 working-directory: pytorch
1355 conda-py3_9-cuda11_8-test: # Testing
1357 needs: conda-py3_9-cuda11_8-build
1358 runs-on: windows.8xlarge.nvidia.gpu
1359 timeout-minutes: 240
1372 - name: Display EC2 information
1375 set -euo pipefail
1378 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1380 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1382 echo "ami-id: $(get_ec2_metadata ami-id)"
1383 echo "instance-id: $(get_ec2_metadata instance-id)"
1384 echo "instance-type: $(get_ec2_metadata instance-type)"
1385 echo "system info $(uname -a)"
1386 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1387 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1388 continue-on-error: true
1390 github-secret: ${{ secrets.GITHUB_TOKEN }}
1391 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1392 - name: Enable long paths on Windows
1395 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1398 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1399 continue-on-error: true
1402 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1405 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1409 - name: Populate binary env
1415 - uses: actions/download-artifact@v3
1418 name: conda-py3_9-cuda11_8
1420 - name: Checkout PyTorch
1421 uses: malfet/checkout@silent-checkout
1425 quiet-checkout: true
1426 - name: Clean PyTorch checkout
1429 git clean -fxd
1430 working-directory: pytorch
1431 - name: Checkout pytorch/builder
1432 uses: malfet/checkout@silent-checkout
1438 quiet-checkout: true
1439 - name: Clean pytorch/builder checkout
1442 git clean -fxd
1443 working-directory: builder
1444 - name: Populate binary env
1448 - name: Test PyTorch binary
1452 - name: Wait until all sessions have drained
1454 working-directory: pytorch
1456 timeout-minutes: 120
1459 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1461 working-directory: pytorch
1465 conda-py3_9-cuda11_8-upload: # Uploading
1468 id-token: write
1470 needs: conda-py3_9-cuda11_8-test
1481 build_name: conda-py3_9-cuda11_8
1483 github-token: ${{ secrets.GITHUB_TOKEN }}
1484 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
1485 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
1486 uses: ./.github/workflows/_binary-upload.yml
1487 conda-py3_9-cuda12_1-build:
1489 runs-on: windows.4xlarge
1490 timeout-minutes: 240
1503 - name: Display EC2 information
1506 set -euo pipefail
1509 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1511 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1513 echo "ami-id: $(get_ec2_metadata ami-id)"
1514 echo "instance-id: $(get_ec2_metadata instance-id)"
1515 echo "instance-type: $(get_ec2_metadata instance-type)"
1516 echo "system info $(uname -a)"
1517 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1518 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1519 continue-on-error: true
1521 github-secret: ${{ secrets.GITHUB_TOKEN }}
1522 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1523 - name: Enable long paths on Windows
1526 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1529 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1530 continue-on-error: true
1533 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1536 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1540 - name: Populate binary env
1546 - name: Checkout PyTorch
1547 uses: malfet/checkout@silent-checkout
1551 quiet-checkout: true
1552 - name: Clean PyTorch checkout
1555 git clean -fxd
1556 working-directory: pytorch
1557 - name: Checkout pytorch/builder
1558 uses: malfet/checkout@silent-checkout
1564 quiet-checkout: true
1565 - name: Clean pytorch/builder checkout
1568 git clean -fxd
1569 working-directory: builder
1570 - name: Populate binary env
1574 - name: Build PyTorch binary
1578 - uses: actions/upload-artifact@v3
1581 name: conda-py3_9-cuda12_1
1582 retention-days: 14
1583 if-no-files-found: error
1585 - name: Wait until all sessions have drained
1587 working-directory: pytorch
1589 timeout-minutes: 120
1592 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1594 working-directory: pytorch
1598 conda-py3_9-cuda12_1-test: # Testing
1600 needs: conda-py3_9-cuda12_1-build
1601 runs-on: windows.8xlarge.nvidia.gpu
1602 timeout-minutes: 240
1615 - name: Display EC2 information
1618 set -euo pipefail
1621 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1623 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1625 echo "ami-id: $(get_ec2_metadata ami-id)"
1626 echo "instance-id: $(get_ec2_metadata instance-id)"
1627 echo "instance-type: $(get_ec2_metadata instance-type)"
1628 echo "system info $(uname -a)"
1629 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1630 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1631 continue-on-error: true
1633 github-secret: ${{ secrets.GITHUB_TOKEN }}
1634 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1635 - name: Enable long paths on Windows
1638 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1641 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1642 continue-on-error: true
1645 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1648 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1652 - name: Populate binary env
1658 - uses: actions/download-artifact@v3
1661 name: conda-py3_9-cuda12_1
1663 - name: Checkout PyTorch
1664 uses: malfet/checkout@silent-checkout
1668 quiet-checkout: true
1669 - name: Clean PyTorch checkout
1672 git clean -fxd
1673 working-directory: pytorch
1674 - name: Checkout pytorch/builder
1675 uses: malfet/checkout@silent-checkout
1681 quiet-checkout: true
1682 - name: Clean pytorch/builder checkout
1685 git clean -fxd
1686 working-directory: builder
1687 - name: Populate binary env
1691 - name: Test PyTorch binary
1695 - name: Wait until all sessions have drained
1697 working-directory: pytorch
1699 timeout-minutes: 120
1702 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1704 working-directory: pytorch
1708 conda-py3_9-cuda12_1-upload: # Uploading
1711 id-token: write
1713 needs: conda-py3_9-cuda12_1-test
1724 build_name: conda-py3_9-cuda12_1
1726 github-token: ${{ secrets.GITHUB_TOKEN }}
1727 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
1728 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
1729 uses: ./.github/workflows/_binary-upload.yml
1730 conda-py3_9-cuda12_4-build:
1732 runs-on: windows.4xlarge
1733 timeout-minutes: 240
1746 - name: Display EC2 information
1749 set -euo pipefail
1752 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1754 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1756 echo "ami-id: $(get_ec2_metadata ami-id)"
1757 echo "instance-id: $(get_ec2_metadata instance-id)"
1758 echo "instance-type: $(get_ec2_metadata instance-type)"
1759 echo "system info $(uname -a)"
1760 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1761 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1762 continue-on-error: true
1764 github-secret: ${{ secrets.GITHUB_TOKEN }}
1765 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1766 - name: Enable long paths on Windows
1769 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1772 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1773 continue-on-error: true
1776 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1779 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1783 - name: Populate binary env
1789 - name: Checkout PyTorch
1790 uses: malfet/checkout@silent-checkout
1794 quiet-checkout: true
1795 - name: Clean PyTorch checkout
1798 git clean -fxd
1799 working-directory: pytorch
1800 - name: Checkout pytorch/builder
1801 uses: malfet/checkout@silent-checkout
1807 quiet-checkout: true
1808 - name: Clean pytorch/builder checkout
1811 git clean -fxd
1812 working-directory: builder
1813 - name: Populate binary env
1817 - name: Build PyTorch binary
1821 - uses: actions/upload-artifact@v3
1824 name: conda-py3_9-cuda12_4
1825 retention-days: 14
1826 if-no-files-found: error
1828 - name: Wait until all sessions have drained
1830 working-directory: pytorch
1832 timeout-minutes: 120
1835 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1837 working-directory: pytorch
1841 conda-py3_9-cuda12_4-test: # Testing
1843 needs: conda-py3_9-cuda12_4-build
1844 runs-on: windows.8xlarge.nvidia.gpu
1845 timeout-minutes: 240
1858 - name: Display EC2 information
1861 set -euo pipefail
1864 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1866 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1868 echo "ami-id: $(get_ec2_metadata ami-id)"
1869 echo "instance-id: $(get_ec2_metadata instance-id)"
1870 echo "instance-type: $(get_ec2_metadata instance-type)"
1871 echo "system info $(uname -a)"
1872 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
1873 uses: pytorch/test-infra/.github/actions/setup-ssh@main
1874 continue-on-error: true
1876 github-secret: ${{ secrets.GITHUB_TOKEN }}
1877 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
1878 - name: Enable long paths on Windows
1881 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
1884 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
1885 continue-on-error: true
1888 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
1891 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
1895 - name: Populate binary env
1901 - uses: actions/download-artifact@v3
1904 name: conda-py3_9-cuda12_4
1906 - name: Checkout PyTorch
1907 uses: malfet/checkout@silent-checkout
1911 quiet-checkout: true
1912 - name: Clean PyTorch checkout
1915 git clean -fxd
1916 working-directory: pytorch
1917 - name: Checkout pytorch/builder
1918 uses: malfet/checkout@silent-checkout
1924 quiet-checkout: true
1925 - name: Clean pytorch/builder checkout
1928 git clean -fxd
1929 working-directory: builder
1930 - name: Populate binary env
1934 - name: Test PyTorch binary
1938 - name: Wait until all sessions have drained
1940 working-directory: pytorch
1942 timeout-minutes: 120
1945 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
1947 working-directory: pytorch
1951 conda-py3_9-cuda12_4-upload: # Uploading
1954 id-token: write
1956 needs: conda-py3_9-cuda12_4-test
1967 build_name: conda-py3_9-cuda12_4
1969 github-token: ${{ secrets.GITHUB_TOKEN }}
1970 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
1971 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
1972 uses: ./.github/workflows/_binary-upload.yml
1973 conda-py3_10-cpu-build:
1975 runs-on: windows.4xlarge
1976 timeout-minutes: 240
1988 - name: Display EC2 information
1991 set -euo pipefail
1994 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
1996 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
1998 echo "ami-id: $(get_ec2_metadata ami-id)"
1999 echo "instance-id: $(get_ec2_metadata instance-id)"
2000 echo "instance-type: $(get_ec2_metadata instance-type)"
2001 echo "system info $(uname -a)"
2002 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2003 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2004 continue-on-error: true
2006 github-secret: ${{ secrets.GITHUB_TOKEN }}
2007 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2008 - name: Enable long paths on Windows
2011 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2014 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2015 continue-on-error: true
2018 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2021 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2025 - name: Populate binary env
2031 - name: Checkout PyTorch
2032 uses: malfet/checkout@silent-checkout
2036 quiet-checkout: true
2037 - name: Clean PyTorch checkout
2040 git clean -fxd
2041 working-directory: pytorch
2042 - name: Checkout pytorch/builder
2043 uses: malfet/checkout@silent-checkout
2049 quiet-checkout: true
2050 - name: Clean pytorch/builder checkout
2053 git clean -fxd
2054 working-directory: builder
2055 - name: Populate binary env
2059 - name: Build PyTorch binary
2063 - uses: actions/upload-artifact@v3
2066 name: conda-py3_10-cpu
2067 retention-days: 14
2068 if-no-files-found: error
2070 - name: Wait until all sessions have drained
2072 working-directory: pytorch
2074 timeout-minutes: 120
2077 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2079 working-directory: pytorch
2083 conda-py3_10-cpu-test: # Testing
2085 needs: conda-py3_10-cpu-build
2086 runs-on: windows.4xlarge.nonephemeral
2087 timeout-minutes: 240
2099 - name: Display EC2 information
2102 set -euo pipefail
2105 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2107 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2109 echo "ami-id: $(get_ec2_metadata ami-id)"
2110 echo "instance-id: $(get_ec2_metadata instance-id)"
2111 echo "instance-type: $(get_ec2_metadata instance-type)"
2112 echo "system info $(uname -a)"
2113 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2114 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2115 continue-on-error: true
2117 github-secret: ${{ secrets.GITHUB_TOKEN }}
2118 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2119 - name: Enable long paths on Windows
2122 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2125 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2126 continue-on-error: true
2129 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2132 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2136 - name: Populate binary env
2142 - uses: actions/download-artifact@v3
2145 name: conda-py3_10-cpu
2147 - name: Checkout PyTorch
2148 uses: malfet/checkout@silent-checkout
2152 quiet-checkout: true
2153 - name: Clean PyTorch checkout
2156 git clean -fxd
2157 working-directory: pytorch
2158 - name: Checkout pytorch/builder
2159 uses: malfet/checkout@silent-checkout
2165 quiet-checkout: true
2166 - name: Clean pytorch/builder checkout
2169 git clean -fxd
2170 working-directory: builder
2171 - name: Populate binary env
2175 - name: Test PyTorch binary
2179 - name: Wait until all sessions have drained
2181 working-directory: pytorch
2183 timeout-minutes: 120
2186 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2188 working-directory: pytorch
2192 conda-py3_10-cpu-upload: # Uploading
2195 id-token: write
2197 needs: conda-py3_10-cpu-test
2207 build_name: conda-py3_10-cpu
2209 github-token: ${{ secrets.GITHUB_TOKEN }}
2210 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
2211 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
2212 uses: ./.github/workflows/_binary-upload.yml
2213 conda-py3_10-cuda11_8-build:
2215 runs-on: windows.4xlarge
2216 timeout-minutes: 240
2229 - name: Display EC2 information
2232 set -euo pipefail
2235 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2237 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2239 echo "ami-id: $(get_ec2_metadata ami-id)"
2240 echo "instance-id: $(get_ec2_metadata instance-id)"
2241 echo "instance-type: $(get_ec2_metadata instance-type)"
2242 echo "system info $(uname -a)"
2243 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2244 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2245 continue-on-error: true
2247 github-secret: ${{ secrets.GITHUB_TOKEN }}
2248 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2249 - name: Enable long paths on Windows
2252 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2255 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2256 continue-on-error: true
2259 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2262 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2266 - name: Populate binary env
2272 - name: Checkout PyTorch
2273 uses: malfet/checkout@silent-checkout
2277 quiet-checkout: true
2278 - name: Clean PyTorch checkout
2281 git clean -fxd
2282 working-directory: pytorch
2283 - name: Checkout pytorch/builder
2284 uses: malfet/checkout@silent-checkout
2290 quiet-checkout: true
2291 - name: Clean pytorch/builder checkout
2294 git clean -fxd
2295 working-directory: builder
2296 - name: Populate binary env
2300 - name: Build PyTorch binary
2304 - uses: actions/upload-artifact@v3
2307 name: conda-py3_10-cuda11_8
2308 retention-days: 14
2309 if-no-files-found: error
2311 - name: Wait until all sessions have drained
2313 working-directory: pytorch
2315 timeout-minutes: 120
2318 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2320 working-directory: pytorch
2324 conda-py3_10-cuda11_8-test: # Testing
2326 needs: conda-py3_10-cuda11_8-build
2327 runs-on: windows.8xlarge.nvidia.gpu
2328 timeout-minutes: 240
2341 - name: Display EC2 information
2344 set -euo pipefail
2347 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2349 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2351 echo "ami-id: $(get_ec2_metadata ami-id)"
2352 echo "instance-id: $(get_ec2_metadata instance-id)"
2353 echo "instance-type: $(get_ec2_metadata instance-type)"
2354 echo "system info $(uname -a)"
2355 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2356 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2357 continue-on-error: true
2359 github-secret: ${{ secrets.GITHUB_TOKEN }}
2360 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2361 - name: Enable long paths on Windows
2364 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2367 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2368 continue-on-error: true
2371 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2374 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2378 - name: Populate binary env
2384 - uses: actions/download-artifact@v3
2387 name: conda-py3_10-cuda11_8
2389 - name: Checkout PyTorch
2390 uses: malfet/checkout@silent-checkout
2394 quiet-checkout: true
2395 - name: Clean PyTorch checkout
2398 git clean -fxd
2399 working-directory: pytorch
2400 - name: Checkout pytorch/builder
2401 uses: malfet/checkout@silent-checkout
2407 quiet-checkout: true
2408 - name: Clean pytorch/builder checkout
2411 git clean -fxd
2412 working-directory: builder
2413 - name: Populate binary env
2417 - name: Test PyTorch binary
2421 - name: Wait until all sessions have drained
2423 working-directory: pytorch
2425 timeout-minutes: 120
2428 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2430 working-directory: pytorch
2434 conda-py3_10-cuda11_8-upload: # Uploading
2437 id-token: write
2439 needs: conda-py3_10-cuda11_8-test
2450 build_name: conda-py3_10-cuda11_8
2452 github-token: ${{ secrets.GITHUB_TOKEN }}
2453 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
2454 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
2455 uses: ./.github/workflows/_binary-upload.yml
2456 conda-py3_10-cuda12_1-build:
2458 runs-on: windows.4xlarge
2459 timeout-minutes: 240
2472 - name: Display EC2 information
2475 set -euo pipefail
2478 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2480 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2482 echo "ami-id: $(get_ec2_metadata ami-id)"
2483 echo "instance-id: $(get_ec2_metadata instance-id)"
2484 echo "instance-type: $(get_ec2_metadata instance-type)"
2485 echo "system info $(uname -a)"
2486 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2487 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2488 continue-on-error: true
2490 github-secret: ${{ secrets.GITHUB_TOKEN }}
2491 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2492 - name: Enable long paths on Windows
2495 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2498 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2499 continue-on-error: true
2502 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2505 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2509 - name: Populate binary env
2515 - name: Checkout PyTorch
2516 uses: malfet/checkout@silent-checkout
2520 quiet-checkout: true
2521 - name: Clean PyTorch checkout
2524 git clean -fxd
2525 working-directory: pytorch
2526 - name: Checkout pytorch/builder
2527 uses: malfet/checkout@silent-checkout
2533 quiet-checkout: true
2534 - name: Clean pytorch/builder checkout
2537 git clean -fxd
2538 working-directory: builder
2539 - name: Populate binary env
2543 - name: Build PyTorch binary
2547 - uses: actions/upload-artifact@v3
2550 name: conda-py3_10-cuda12_1
2551 retention-days: 14
2552 if-no-files-found: error
2554 - name: Wait until all sessions have drained
2556 working-directory: pytorch
2558 timeout-minutes: 120
2561 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2563 working-directory: pytorch
2567 conda-py3_10-cuda12_1-test: # Testing
2569 needs: conda-py3_10-cuda12_1-build
2570 runs-on: windows.8xlarge.nvidia.gpu
2571 timeout-minutes: 240
2584 - name: Display EC2 information
2587 set -euo pipefail
2590 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2592 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2594 echo "ami-id: $(get_ec2_metadata ami-id)"
2595 echo "instance-id: $(get_ec2_metadata instance-id)"
2596 echo "instance-type: $(get_ec2_metadata instance-type)"
2597 echo "system info $(uname -a)"
2598 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2599 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2600 continue-on-error: true
2602 github-secret: ${{ secrets.GITHUB_TOKEN }}
2603 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2604 - name: Enable long paths on Windows
2607 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2610 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2611 continue-on-error: true
2614 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2617 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2621 - name: Populate binary env
2627 - uses: actions/download-artifact@v3
2630 name: conda-py3_10-cuda12_1
2632 - name: Checkout PyTorch
2633 uses: malfet/checkout@silent-checkout
2637 quiet-checkout: true
2638 - name: Clean PyTorch checkout
2641 git clean -fxd
2642 working-directory: pytorch
2643 - name: Checkout pytorch/builder
2644 uses: malfet/checkout@silent-checkout
2650 quiet-checkout: true
2651 - name: Clean pytorch/builder checkout
2654 git clean -fxd
2655 working-directory: builder
2656 - name: Populate binary env
2660 - name: Test PyTorch binary
2664 - name: Wait until all sessions have drained
2666 working-directory: pytorch
2668 timeout-minutes: 120
2671 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2673 working-directory: pytorch
2677 conda-py3_10-cuda12_1-upload: # Uploading
2680 id-token: write
2682 needs: conda-py3_10-cuda12_1-test
2693 build_name: conda-py3_10-cuda12_1
2695 github-token: ${{ secrets.GITHUB_TOKEN }}
2696 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
2697 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
2698 uses: ./.github/workflows/_binary-upload.yml
2699 conda-py3_10-cuda12_4-build:
2701 runs-on: windows.4xlarge
2702 timeout-minutes: 240
2715 - name: Display EC2 information
2718 set -euo pipefail
2721 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2723 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2725 echo "ami-id: $(get_ec2_metadata ami-id)"
2726 echo "instance-id: $(get_ec2_metadata instance-id)"
2727 echo "instance-type: $(get_ec2_metadata instance-type)"
2728 echo "system info $(uname -a)"
2729 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2730 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2731 continue-on-error: true
2733 github-secret: ${{ secrets.GITHUB_TOKEN }}
2734 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2735 - name: Enable long paths on Windows
2738 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2741 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2742 continue-on-error: true
2745 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2748 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2752 - name: Populate binary env
2758 - name: Checkout PyTorch
2759 uses: malfet/checkout@silent-checkout
2763 quiet-checkout: true
2764 - name: Clean PyTorch checkout
2767 git clean -fxd
2768 working-directory: pytorch
2769 - name: Checkout pytorch/builder
2770 uses: malfet/checkout@silent-checkout
2776 quiet-checkout: true
2777 - name: Clean pytorch/builder checkout
2780 git clean -fxd
2781 working-directory: builder
2782 - name: Populate binary env
2786 - name: Build PyTorch binary
2790 - uses: actions/upload-artifact@v3
2793 name: conda-py3_10-cuda12_4
2794 retention-days: 14
2795 if-no-files-found: error
2797 - name: Wait until all sessions have drained
2799 working-directory: pytorch
2801 timeout-minutes: 120
2804 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2806 working-directory: pytorch
2810 conda-py3_10-cuda12_4-test: # Testing
2812 needs: conda-py3_10-cuda12_4-build
2813 runs-on: windows.8xlarge.nvidia.gpu
2814 timeout-minutes: 240
2827 - name: Display EC2 information
2830 set -euo pipefail
2833 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2835 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2837 echo "ami-id: $(get_ec2_metadata ami-id)"
2838 echo "instance-id: $(get_ec2_metadata instance-id)"
2839 echo "instance-type: $(get_ec2_metadata instance-type)"
2840 echo "system info $(uname -a)"
2841 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2842 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2843 continue-on-error: true
2845 github-secret: ${{ secrets.GITHUB_TOKEN }}
2846 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2847 - name: Enable long paths on Windows
2850 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2853 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2854 continue-on-error: true
2857 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2860 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2864 - name: Populate binary env
2870 - uses: actions/download-artifact@v3
2873 name: conda-py3_10-cuda12_4
2875 - name: Checkout PyTorch
2876 uses: malfet/checkout@silent-checkout
2880 quiet-checkout: true
2881 - name: Clean PyTorch checkout
2884 git clean -fxd
2885 working-directory: pytorch
2886 - name: Checkout pytorch/builder
2887 uses: malfet/checkout@silent-checkout
2893 quiet-checkout: true
2894 - name: Clean pytorch/builder checkout
2897 git clean -fxd
2898 working-directory: builder
2899 - name: Populate binary env
2903 - name: Test PyTorch binary
2907 - name: Wait until all sessions have drained
2909 working-directory: pytorch
2911 timeout-minutes: 120
2914 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
2916 working-directory: pytorch
2920 conda-py3_10-cuda12_4-upload: # Uploading
2923 id-token: write
2925 needs: conda-py3_10-cuda12_4-test
2936 build_name: conda-py3_10-cuda12_4
2938 github-token: ${{ secrets.GITHUB_TOKEN }}
2939 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
2940 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
2941 uses: ./.github/workflows/_binary-upload.yml
2942 conda-py3_11-cpu-build:
2944 runs-on: windows.4xlarge
2945 timeout-minutes: 240
2957 - name: Display EC2 information
2960 set -euo pipefail
2963 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
2965 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
2967 echo "ami-id: $(get_ec2_metadata ami-id)"
2968 echo "instance-id: $(get_ec2_metadata instance-id)"
2969 echo "instance-type: $(get_ec2_metadata instance-type)"
2970 echo "system info $(uname -a)"
2971 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
2972 uses: pytorch/test-infra/.github/actions/setup-ssh@main
2973 continue-on-error: true
2975 github-secret: ${{ secrets.GITHUB_TOKEN }}
2976 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
2977 - name: Enable long paths on Windows
2980 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
2983 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
2984 continue-on-error: true
2987 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
2990 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
2994 - name: Populate binary env
3000 - name: Checkout PyTorch
3001 uses: malfet/checkout@silent-checkout
3005 quiet-checkout: true
3006 - name: Clean PyTorch checkout
3009 git clean -fxd
3010 working-directory: pytorch
3011 - name: Checkout pytorch/builder
3012 uses: malfet/checkout@silent-checkout
3018 quiet-checkout: true
3019 - name: Clean pytorch/builder checkout
3022 git clean -fxd
3023 working-directory: builder
3024 - name: Populate binary env
3028 - name: Build PyTorch binary
3032 - uses: actions/upload-artifact@v3
3035 name: conda-py3_11-cpu
3036 retention-days: 14
3037 if-no-files-found: error
3039 - name: Wait until all sessions have drained
3041 working-directory: pytorch
3043 timeout-minutes: 120
3046 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3048 working-directory: pytorch
3052 conda-py3_11-cpu-test: # Testing
3054 needs: conda-py3_11-cpu-build
3055 runs-on: windows.4xlarge.nonephemeral
3056 timeout-minutes: 240
3068 - name: Display EC2 information
3071 set -euo pipefail
3074 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3076 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3078 echo "ami-id: $(get_ec2_metadata ami-id)"
3079 echo "instance-id: $(get_ec2_metadata instance-id)"
3080 echo "instance-type: $(get_ec2_metadata instance-type)"
3081 echo "system info $(uname -a)"
3082 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3083 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3084 continue-on-error: true
3086 github-secret: ${{ secrets.GITHUB_TOKEN }}
3087 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3088 - name: Enable long paths on Windows
3091 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3094 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3095 continue-on-error: true
3098 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3101 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3105 - name: Populate binary env
3111 - uses: actions/download-artifact@v3
3114 name: conda-py3_11-cpu
3116 - name: Checkout PyTorch
3117 uses: malfet/checkout@silent-checkout
3121 quiet-checkout: true
3122 - name: Clean PyTorch checkout
3125 git clean -fxd
3126 working-directory: pytorch
3127 - name: Checkout pytorch/builder
3128 uses: malfet/checkout@silent-checkout
3134 quiet-checkout: true
3135 - name: Clean pytorch/builder checkout
3138 git clean -fxd
3139 working-directory: builder
3140 - name: Populate binary env
3144 - name: Test PyTorch binary
3148 - name: Wait until all sessions have drained
3150 working-directory: pytorch
3152 timeout-minutes: 120
3155 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3157 working-directory: pytorch
3161 conda-py3_11-cpu-upload: # Uploading
3164 id-token: write
3166 needs: conda-py3_11-cpu-test
3176 build_name: conda-py3_11-cpu
3178 github-token: ${{ secrets.GITHUB_TOKEN }}
3179 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
3180 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
3181 uses: ./.github/workflows/_binary-upload.yml
3182 conda-py3_11-cuda11_8-build:
3184 runs-on: windows.4xlarge
3185 timeout-minutes: 240
3198 - name: Display EC2 information
3201 set -euo pipefail
3204 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3206 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3208 echo "ami-id: $(get_ec2_metadata ami-id)"
3209 echo "instance-id: $(get_ec2_metadata instance-id)"
3210 echo "instance-type: $(get_ec2_metadata instance-type)"
3211 echo "system info $(uname -a)"
3212 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3213 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3214 continue-on-error: true
3216 github-secret: ${{ secrets.GITHUB_TOKEN }}
3217 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3218 - name: Enable long paths on Windows
3221 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3224 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3225 continue-on-error: true
3228 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3231 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3235 - name: Populate binary env
3241 - name: Checkout PyTorch
3242 uses: malfet/checkout@silent-checkout
3246 quiet-checkout: true
3247 - name: Clean PyTorch checkout
3250 git clean -fxd
3251 working-directory: pytorch
3252 - name: Checkout pytorch/builder
3253 uses: malfet/checkout@silent-checkout
3259 quiet-checkout: true
3260 - name: Clean pytorch/builder checkout
3263 git clean -fxd
3264 working-directory: builder
3265 - name: Populate binary env
3269 - name: Build PyTorch binary
3273 - uses: actions/upload-artifact@v3
3276 name: conda-py3_11-cuda11_8
3277 retention-days: 14
3278 if-no-files-found: error
3280 - name: Wait until all sessions have drained
3282 working-directory: pytorch
3284 timeout-minutes: 120
3287 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3289 working-directory: pytorch
3293 conda-py3_11-cuda11_8-test: # Testing
3295 needs: conda-py3_11-cuda11_8-build
3296 runs-on: windows.8xlarge.nvidia.gpu
3297 timeout-minutes: 240
3310 - name: Display EC2 information
3313 set -euo pipefail
3316 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3318 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3320 echo "ami-id: $(get_ec2_metadata ami-id)"
3321 echo "instance-id: $(get_ec2_metadata instance-id)"
3322 echo "instance-type: $(get_ec2_metadata instance-type)"
3323 echo "system info $(uname -a)"
3324 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3325 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3326 continue-on-error: true
3328 github-secret: ${{ secrets.GITHUB_TOKEN }}
3329 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3330 - name: Enable long paths on Windows
3333 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3336 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3337 continue-on-error: true
3340 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3343 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3347 - name: Populate binary env
3353 - uses: actions/download-artifact@v3
3356 name: conda-py3_11-cuda11_8
3358 - name: Checkout PyTorch
3359 uses: malfet/checkout@silent-checkout
3363 quiet-checkout: true
3364 - name: Clean PyTorch checkout
3367 git clean -fxd
3368 working-directory: pytorch
3369 - name: Checkout pytorch/builder
3370 uses: malfet/checkout@silent-checkout
3376 quiet-checkout: true
3377 - name: Clean pytorch/builder checkout
3380 git clean -fxd
3381 working-directory: builder
3382 - name: Populate binary env
3386 - name: Test PyTorch binary
3390 - name: Wait until all sessions have drained
3392 working-directory: pytorch
3394 timeout-minutes: 120
3397 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3399 working-directory: pytorch
3403 conda-py3_11-cuda11_8-upload: # Uploading
3406 id-token: write
3408 needs: conda-py3_11-cuda11_8-test
3419 build_name: conda-py3_11-cuda11_8
3421 github-token: ${{ secrets.GITHUB_TOKEN }}
3422 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
3423 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
3424 uses: ./.github/workflows/_binary-upload.yml
3425 conda-py3_11-cuda12_1-build:
3427 runs-on: windows.4xlarge
3428 timeout-minutes: 240
3441 - name: Display EC2 information
3444 set -euo pipefail
3447 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3449 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3451 echo "ami-id: $(get_ec2_metadata ami-id)"
3452 echo "instance-id: $(get_ec2_metadata instance-id)"
3453 echo "instance-type: $(get_ec2_metadata instance-type)"
3454 echo "system info $(uname -a)"
3455 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3456 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3457 continue-on-error: true
3459 github-secret: ${{ secrets.GITHUB_TOKEN }}
3460 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3461 - name: Enable long paths on Windows
3464 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3467 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3468 continue-on-error: true
3471 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3474 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3478 - name: Populate binary env
3484 - name: Checkout PyTorch
3485 uses: malfet/checkout@silent-checkout
3489 quiet-checkout: true
3490 - name: Clean PyTorch checkout
3493 git clean -fxd
3494 working-directory: pytorch
3495 - name: Checkout pytorch/builder
3496 uses: malfet/checkout@silent-checkout
3502 quiet-checkout: true
3503 - name: Clean pytorch/builder checkout
3506 git clean -fxd
3507 working-directory: builder
3508 - name: Populate binary env
3512 - name: Build PyTorch binary
3516 - uses: actions/upload-artifact@v3
3519 name: conda-py3_11-cuda12_1
3520 retention-days: 14
3521 if-no-files-found: error
3523 - name: Wait until all sessions have drained
3525 working-directory: pytorch
3527 timeout-minutes: 120
3530 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3532 working-directory: pytorch
3536 conda-py3_11-cuda12_1-test: # Testing
3538 needs: conda-py3_11-cuda12_1-build
3539 runs-on: windows.8xlarge.nvidia.gpu
3540 timeout-minutes: 240
3553 - name: Display EC2 information
3556 set -euo pipefail
3559 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3561 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3563 echo "ami-id: $(get_ec2_metadata ami-id)"
3564 echo "instance-id: $(get_ec2_metadata instance-id)"
3565 echo "instance-type: $(get_ec2_metadata instance-type)"
3566 echo "system info $(uname -a)"
3567 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3568 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3569 continue-on-error: true
3571 github-secret: ${{ secrets.GITHUB_TOKEN }}
3572 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3573 - name: Enable long paths on Windows
3576 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3579 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3580 continue-on-error: true
3583 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3586 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3590 - name: Populate binary env
3596 - uses: actions/download-artifact@v3
3599 name: conda-py3_11-cuda12_1
3601 - name: Checkout PyTorch
3602 uses: malfet/checkout@silent-checkout
3606 quiet-checkout: true
3607 - name: Clean PyTorch checkout
3610 git clean -fxd
3611 working-directory: pytorch
3612 - name: Checkout pytorch/builder
3613 uses: malfet/checkout@silent-checkout
3619 quiet-checkout: true
3620 - name: Clean pytorch/builder checkout
3623 git clean -fxd
3624 working-directory: builder
3625 - name: Populate binary env
3629 - name: Test PyTorch binary
3633 - name: Wait until all sessions have drained
3635 working-directory: pytorch
3637 timeout-minutes: 120
3640 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3642 working-directory: pytorch
3646 conda-py3_11-cuda12_1-upload: # Uploading
3649 id-token: write
3651 needs: conda-py3_11-cuda12_1-test
3662 build_name: conda-py3_11-cuda12_1
3664 github-token: ${{ secrets.GITHUB_TOKEN }}
3665 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
3666 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
3667 uses: ./.github/workflows/_binary-upload.yml
3668 conda-py3_11-cuda12_4-build:
3670 runs-on: windows.4xlarge
3671 timeout-minutes: 240
3684 - name: Display EC2 information
3687 set -euo pipefail
3690 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3692 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3694 echo "ami-id: $(get_ec2_metadata ami-id)"
3695 echo "instance-id: $(get_ec2_metadata instance-id)"
3696 echo "instance-type: $(get_ec2_metadata instance-type)"
3697 echo "system info $(uname -a)"
3698 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3699 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3700 continue-on-error: true
3702 github-secret: ${{ secrets.GITHUB_TOKEN }}
3703 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3704 - name: Enable long paths on Windows
3707 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3710 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3711 continue-on-error: true
3714 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3717 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3721 - name: Populate binary env
3727 - name: Checkout PyTorch
3728 uses: malfet/checkout@silent-checkout
3732 quiet-checkout: true
3733 - name: Clean PyTorch checkout
3736 git clean -fxd
3737 working-directory: pytorch
3738 - name: Checkout pytorch/builder
3739 uses: malfet/checkout@silent-checkout
3745 quiet-checkout: true
3746 - name: Clean pytorch/builder checkout
3749 git clean -fxd
3750 working-directory: builder
3751 - name: Populate binary env
3755 - name: Build PyTorch binary
3759 - uses: actions/upload-artifact@v3
3762 name: conda-py3_11-cuda12_4
3763 retention-days: 14
3764 if-no-files-found: error
3766 - name: Wait until all sessions have drained
3768 working-directory: pytorch
3770 timeout-minutes: 120
3773 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3775 working-directory: pytorch
3779 conda-py3_11-cuda12_4-test: # Testing
3781 needs: conda-py3_11-cuda12_4-build
3782 runs-on: windows.8xlarge.nvidia.gpu
3783 timeout-minutes: 240
3796 - name: Display EC2 information
3799 set -euo pipefail
3802 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3804 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3806 echo "ami-id: $(get_ec2_metadata ami-id)"
3807 echo "instance-id: $(get_ec2_metadata instance-id)"
3808 echo "instance-type: $(get_ec2_metadata instance-type)"
3809 echo "system info $(uname -a)"
3810 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3811 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3812 continue-on-error: true
3814 github-secret: ${{ secrets.GITHUB_TOKEN }}
3815 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3816 - name: Enable long paths on Windows
3819 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3822 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3823 continue-on-error: true
3826 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3829 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3833 - name: Populate binary env
3839 - uses: actions/download-artifact@v3
3842 name: conda-py3_11-cuda12_4
3844 - name: Checkout PyTorch
3845 uses: malfet/checkout@silent-checkout
3849 quiet-checkout: true
3850 - name: Clean PyTorch checkout
3853 git clean -fxd
3854 working-directory: pytorch
3855 - name: Checkout pytorch/builder
3856 uses: malfet/checkout@silent-checkout
3862 quiet-checkout: true
3863 - name: Clean pytorch/builder checkout
3866 git clean -fxd
3867 working-directory: builder
3868 - name: Populate binary env
3872 - name: Test PyTorch binary
3876 - name: Wait until all sessions have drained
3878 working-directory: pytorch
3880 timeout-minutes: 120
3883 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
3885 working-directory: pytorch
3889 conda-py3_11-cuda12_4-upload: # Uploading
3892 id-token: write
3894 needs: conda-py3_11-cuda12_4-test
3905 build_name: conda-py3_11-cuda12_4
3907 github-token: ${{ secrets.GITHUB_TOKEN }}
3908 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
3909 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
3910 uses: ./.github/workflows/_binary-upload.yml
3911 conda-py3_12-cpu-build:
3913 runs-on: windows.4xlarge
3914 timeout-minutes: 240
3926 - name: Display EC2 information
3929 set -euo pipefail
3932 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
3934 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
3936 echo "ami-id: $(get_ec2_metadata ami-id)"
3937 echo "instance-id: $(get_ec2_metadata instance-id)"
3938 echo "instance-type: $(get_ec2_metadata instance-type)"
3939 echo "system info $(uname -a)"
3940 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
3941 uses: pytorch/test-infra/.github/actions/setup-ssh@main
3942 continue-on-error: true
3944 github-secret: ${{ secrets.GITHUB_TOKEN }}
3945 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
3946 - name: Enable long paths on Windows
3949 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
3952 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
3953 continue-on-error: true
3956 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
3959 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
3963 - name: Populate binary env
3969 - name: Checkout PyTorch
3970 uses: malfet/checkout@silent-checkout
3974 quiet-checkout: true
3975 - name: Clean PyTorch checkout
3978 git clean -fxd
3979 working-directory: pytorch
3980 - name: Checkout pytorch/builder
3981 uses: malfet/checkout@silent-checkout
3987 quiet-checkout: true
3988 - name: Clean pytorch/builder checkout
3991 git clean -fxd
3992 working-directory: builder
3993 - name: Populate binary env
3997 - name: Build PyTorch binary
4001 - uses: actions/upload-artifact@v3
4004 name: conda-py3_12-cpu
4005 retention-days: 14
4006 if-no-files-found: error
4008 - name: Wait until all sessions have drained
4010 working-directory: pytorch
4012 timeout-minutes: 120
4015 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4017 working-directory: pytorch
4021 conda-py3_12-cpu-test: # Testing
4023 needs: conda-py3_12-cpu-build
4024 runs-on: windows.4xlarge.nonephemeral
4025 timeout-minutes: 240
4037 - name: Display EC2 information
4040 set -euo pipefail
4043 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
4045 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
4047 echo "ami-id: $(get_ec2_metadata ami-id)"
4048 echo "instance-id: $(get_ec2_metadata instance-id)"
4049 echo "instance-type: $(get_ec2_metadata instance-type)"
4050 echo "system info $(uname -a)"
4051 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
4052 uses: pytorch/test-infra/.github/actions/setup-ssh@main
4053 continue-on-error: true
4055 github-secret: ${{ secrets.GITHUB_TOKEN }}
4056 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
4057 - name: Enable long paths on Windows
4060 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
4063 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
4064 continue-on-error: true
4067 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
4070 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
4074 - name: Populate binary env
4080 - uses: actions/download-artifact@v3
4083 name: conda-py3_12-cpu
4085 - name: Checkout PyTorch
4086 uses: malfet/checkout@silent-checkout
4090 quiet-checkout: true
4091 - name: Clean PyTorch checkout
4094 git clean -fxd
4095 working-directory: pytorch
4096 - name: Checkout pytorch/builder
4097 uses: malfet/checkout@silent-checkout
4103 quiet-checkout: true
4104 - name: Clean pytorch/builder checkout
4107 git clean -fxd
4108 working-directory: builder
4109 - name: Populate binary env
4113 - name: Test PyTorch binary
4117 - name: Wait until all sessions have drained
4119 working-directory: pytorch
4121 timeout-minutes: 120
4124 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4126 working-directory: pytorch
4130 conda-py3_12-cpu-upload: # Uploading
4133 id-token: write
4135 needs: conda-py3_12-cpu-test
4145 build_name: conda-py3_12-cpu
4147 github-token: ${{ secrets.GITHUB_TOKEN }}
4148 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
4149 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
4150 uses: ./.github/workflows/_binary-upload.yml
4151 conda-py3_12-cuda11_8-build:
4153 runs-on: windows.4xlarge
4154 timeout-minutes: 240
4167 - name: Display EC2 information
4170 set -euo pipefail
4173 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
4175 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
4177 echo "ami-id: $(get_ec2_metadata ami-id)"
4178 echo "instance-id: $(get_ec2_metadata instance-id)"
4179 echo "instance-type: $(get_ec2_metadata instance-type)"
4180 echo "system info $(uname -a)"
4181 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
4182 uses: pytorch/test-infra/.github/actions/setup-ssh@main
4183 continue-on-error: true
4185 github-secret: ${{ secrets.GITHUB_TOKEN }}
4186 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
4187 - name: Enable long paths on Windows
4190 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
4193 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
4194 continue-on-error: true
4197 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
4200 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
4204 - name: Populate binary env
4210 - name: Checkout PyTorch
4211 uses: malfet/checkout@silent-checkout
4215 quiet-checkout: true
4216 - name: Clean PyTorch checkout
4219 git clean -fxd
4220 working-directory: pytorch
4221 - name: Checkout pytorch/builder
4222 uses: malfet/checkout@silent-checkout
4228 quiet-checkout: true
4229 - name: Clean pytorch/builder checkout
4232 git clean -fxd
4233 working-directory: builder
4234 - name: Populate binary env
4238 - name: Build PyTorch binary
4242 - uses: actions/upload-artifact@v3
4245 name: conda-py3_12-cuda11_8
4246 retention-days: 14
4247 if-no-files-found: error
4249 - name: Wait until all sessions have drained
4251 working-directory: pytorch
4253 timeout-minutes: 120
4256 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4258 working-directory: pytorch
4262 conda-py3_12-cuda11_8-test: # Testing
4264 needs: conda-py3_12-cuda11_8-build
4265 runs-on: windows.8xlarge.nvidia.gpu
4266 timeout-minutes: 240
4279 - name: Display EC2 information
4282 set -euo pipefail
4285 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
4287 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
4289 echo "ami-id: $(get_ec2_metadata ami-id)"
4290 echo "instance-id: $(get_ec2_metadata instance-id)"
4291 echo "instance-type: $(get_ec2_metadata instance-type)"
4292 echo "system info $(uname -a)"
4293 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
4294 uses: pytorch/test-infra/.github/actions/setup-ssh@main
4295 continue-on-error: true
4297 github-secret: ${{ secrets.GITHUB_TOKEN }}
4298 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
4299 - name: Enable long paths on Windows
4302 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
4305 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
4306 continue-on-error: true
4309 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
4312 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
4316 - name: Populate binary env
4322 - uses: actions/download-artifact@v3
4325 name: conda-py3_12-cuda11_8
4327 - name: Checkout PyTorch
4328 uses: malfet/checkout@silent-checkout
4332 quiet-checkout: true
4333 - name: Clean PyTorch checkout
4336 git clean -fxd
4337 working-directory: pytorch
4338 - name: Checkout pytorch/builder
4339 uses: malfet/checkout@silent-checkout
4345 quiet-checkout: true
4346 - name: Clean pytorch/builder checkout
4349 git clean -fxd
4350 working-directory: builder
4351 - name: Populate binary env
4355 - name: Test PyTorch binary
4359 - name: Wait until all sessions have drained
4361 working-directory: pytorch
4363 timeout-minutes: 120
4366 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4368 working-directory: pytorch
4372 conda-py3_12-cuda11_8-upload: # Uploading
4375 id-token: write
4377 needs: conda-py3_12-cuda11_8-test
4388 build_name: conda-py3_12-cuda11_8
4390 github-token: ${{ secrets.GITHUB_TOKEN }}
4391 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
4392 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
4393 uses: ./.github/workflows/_binary-upload.yml
4394 conda-py3_12-cuda12_1-build:
4396 runs-on: windows.4xlarge
4397 timeout-minutes: 240
4410 - name: Display EC2 information
4413 set -euo pipefail
4416 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
4418 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
4420 echo "ami-id: $(get_ec2_metadata ami-id)"
4421 echo "instance-id: $(get_ec2_metadata instance-id)"
4422 echo "instance-type: $(get_ec2_metadata instance-type)"
4423 echo "system info $(uname -a)"
4424 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
4425 uses: pytorch/test-infra/.github/actions/setup-ssh@main
4426 continue-on-error: true
4428 github-secret: ${{ secrets.GITHUB_TOKEN }}
4429 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
4430 - name: Enable long paths on Windows
4433 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
4436 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
4437 continue-on-error: true
4440 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
4443 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
4447 - name: Populate binary env
4453 - name: Checkout PyTorch
4454 uses: malfet/checkout@silent-checkout
4458 quiet-checkout: true
4459 - name: Clean PyTorch checkout
4462 git clean -fxd
4463 working-directory: pytorch
4464 - name: Checkout pytorch/builder
4465 uses: malfet/checkout@silent-checkout
4471 quiet-checkout: true
4472 - name: Clean pytorch/builder checkout
4475 git clean -fxd
4476 working-directory: builder
4477 - name: Populate binary env
4481 - name: Build PyTorch binary
4485 - uses: actions/upload-artifact@v3
4488 name: conda-py3_12-cuda12_1
4489 retention-days: 14
4490 if-no-files-found: error
4492 - name: Wait until all sessions have drained
4494 working-directory: pytorch
4496 timeout-minutes: 120
4499 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4501 working-directory: pytorch
4505 conda-py3_12-cuda12_1-test: # Testing
4507 needs: conda-py3_12-cuda12_1-build
4508 runs-on: windows.8xlarge.nvidia.gpu
4509 timeout-minutes: 240
4522 - name: Display EC2 information
4525 set -euo pipefail
4528 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
4530 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
4532 echo "ami-id: $(get_ec2_metadata ami-id)"
4533 echo "instance-id: $(get_ec2_metadata instance-id)"
4534 echo "instance-type: $(get_ec2_metadata instance-type)"
4535 echo "system info $(uname -a)"
4536 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
4537 uses: pytorch/test-infra/.github/actions/setup-ssh@main
4538 continue-on-error: true
4540 github-secret: ${{ secrets.GITHUB_TOKEN }}
4541 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
4542 - name: Enable long paths on Windows
4545 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
4548 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
4549 continue-on-error: true
4552 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
4555 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
4559 - name: Populate binary env
4565 - uses: actions/download-artifact@v3
4568 name: conda-py3_12-cuda12_1
4570 - name: Checkout PyTorch
4571 uses: malfet/checkout@silent-checkout
4575 quiet-checkout: true
4576 - name: Clean PyTorch checkout
4579 git clean -fxd
4580 working-directory: pytorch
4581 - name: Checkout pytorch/builder
4582 uses: malfet/checkout@silent-checkout
4588 quiet-checkout: true
4589 - name: Clean pytorch/builder checkout
4592 git clean -fxd
4593 working-directory: builder
4594 - name: Populate binary env
4598 - name: Test PyTorch binary
4602 - name: Wait until all sessions have drained
4604 working-directory: pytorch
4606 timeout-minutes: 120
4609 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4611 working-directory: pytorch
4615 conda-py3_12-cuda12_1-upload: # Uploading
4618 id-token: write
4620 needs: conda-py3_12-cuda12_1-test
4631 build_name: conda-py3_12-cuda12_1
4633 github-token: ${{ secrets.GITHUB_TOKEN }}
4634 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
4635 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
4636 uses: ./.github/workflows/_binary-upload.yml
4637 conda-py3_12-cuda12_4-build:
4639 runs-on: windows.4xlarge
4640 timeout-minutes: 240
4653 - name: Display EC2 information
4656 set -euo pipefail
4659 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
4661 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
4663 echo "ami-id: $(get_ec2_metadata ami-id)"
4664 echo "instance-id: $(get_ec2_metadata instance-id)"
4665 echo "instance-type: $(get_ec2_metadata instance-type)"
4666 echo "system info $(uname -a)"
4667 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
4668 uses: pytorch/test-infra/.github/actions/setup-ssh@main
4669 continue-on-error: true
4671 github-secret: ${{ secrets.GITHUB_TOKEN }}
4672 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
4673 - name: Enable long paths on Windows
4676 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
4679 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
4680 continue-on-error: true
4683 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
4686 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
4690 - name: Populate binary env
4696 - name: Checkout PyTorch
4697 uses: malfet/checkout@silent-checkout
4701 quiet-checkout: true
4702 - name: Clean PyTorch checkout
4705 git clean -fxd
4706 working-directory: pytorch
4707 - name: Checkout pytorch/builder
4708 uses: malfet/checkout@silent-checkout
4714 quiet-checkout: true
4715 - name: Clean pytorch/builder checkout
4718 git clean -fxd
4719 working-directory: builder
4720 - name: Populate binary env
4724 - name: Build PyTorch binary
4728 - uses: actions/upload-artifact@v3
4731 name: conda-py3_12-cuda12_4
4732 retention-days: 14
4733 if-no-files-found: error
4735 - name: Wait until all sessions have drained
4737 working-directory: pytorch
4739 timeout-minutes: 120
4742 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4744 working-directory: pytorch
4748 conda-py3_12-cuda12_4-test: # Testing
4750 needs: conda-py3_12-cuda12_4-build
4751 runs-on: windows.8xlarge.nvidia.gpu
4752 timeout-minutes: 240
4765 - name: Display EC2 information
4768 set -euo pipefail
4771 … # see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
4773 curl -fsSL "http://169.254.169.254/latest/meta-data/${category}"
4775 echo "ami-id: $(get_ec2_metadata ami-id)"
4776 echo "instance-id: $(get_ec2_metadata instance-id)"
4777 echo "instance-type: $(get_ec2_metadata instance-type)"
4778 echo "system info $(uname -a)"
4779 - name: "[FB EMPLOYEES] Enable SSH (Click me for login details)"
4780 uses: pytorch/test-infra/.github/actions/setup-ssh@main
4781 continue-on-error: true
4783 github-secret: ${{ secrets.GITHUB_TOKEN }}
4784 …ded for binary builds, see: https://github.com/pytorch/pytorch/issues/73339#issuecomment-1058981560
4785 - name: Enable long paths on Windows
4788 …Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnable…
4791 …- name: Disables Windows Defender scheduled and real-time scanning for files in directories used b…
4792 continue-on-error: true
4795 Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
4798 Set-MpPreference -DisableRealtimeMonitoring $True -ErrorAction Ignore
4802 - name: Populate binary env
4808 - uses: actions/download-artifact@v3
4811 name: conda-py3_12-cuda12_4
4813 - name: Checkout PyTorch
4814 uses: malfet/checkout@silent-checkout
4818 quiet-checkout: true
4819 - name: Clean PyTorch checkout
4822 git clean -fxd
4823 working-directory: pytorch
4824 - name: Checkout pytorch/builder
4825 uses: malfet/checkout@silent-checkout
4831 quiet-checkout: true
4832 - name: Clean pytorch/builder checkout
4835 git clean -fxd
4836 working-directory: builder
4837 - name: Populate binary env
4841 - name: Test PyTorch binary
4845 - name: Wait until all sessions have drained
4847 working-directory: pytorch
4849 timeout-minutes: 120
4852 - name: Kill active ssh sessions if still around (Useful if workflow was cancelled)
4854 working-directory: pytorch
4858 conda-py3_12-cuda12_4-upload: # Uploading
4861 id-token: write
4863 needs: conda-py3_12-cuda12_4-test
4874 build_name: conda-py3_12-cuda12_4
4876 github-token: ${{ secrets.GITHUB_TOKEN }}
4877 conda-pytorchbot-token: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
4878 conda-pytorchbot-token-test: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}
4879 uses: ./.github/workflows/_binary-upload.yml