[CI] Checkout with more processes (#147652)

The default action doesn't use more processes, possibly because most github provided runners only have 2 cpus, but we have more than that, so we might as well use them

Generally cuts maybe 1 min off of checkout time?

Changed checkout from pytorch/pytorch@main to pytorch/pytorch@my branch to test on 249a936998e66cc0d6ad8664e0e93ec1b9432a8b

Pull Request resolved: https://github.com/pytorch/pytorch/pull/147652
Approved by: https://github.com/ZainRizvi
This commit is contained in:
Catherine Lee
2025-02-26 17:51:28 +00:00
committed by PyTorch MergeBot
parent ef61c290e1
commit 3f7e242c86

View File

@ -40,6 +40,11 @@ runs:
fi
mkdir "${GITHUB_WORKSPACE}"
# Use all available CPUs for fetching
cd "${GITHUB_WORKSPACE}"
git config --global fetch.parallel 0
git config --global submodule.fetchJobs 0
- name: Checkout PyTorch
uses: actions/checkout@v4
with: