pytorch/cmake
zhouzhuojie 6107cf3750 Add --jobs 0 for git submodule update (#61311)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61311

Pull Request resolved: https://github.com/pytorch/pytorch/pull/61152

Some related docs about `submodule.fetchJobs`
https://git-scm.com/docs/git-config#Documentation/git-config.txt-submodulefetchJobs

```
time git submodule update --init --recursive
________________________________________________________
Executed in  243.20 secs    fish           external
   usr time   49.64 secs  213.00 micros   49.64 secs
   sys time   29.27 secs  795.00 micros   29.27 secs
```

```
time git submodule update --init --recursive --jobs 4
________________________________________________________
Executed in  143.04 secs    fish           external
   usr time   51.06 secs  246.00 micros   51.06 secs
   sys time   30.96 secs  742.00 micros   30.96 secs
```

```
time git submodule update --init --recursive --jobs 8
________________________________________________________
Executed in  124.64 secs    fish           external
   usr time   51.76 secs  264.00 micros   51.76 secs
   sys time   30.49 secs  739.00 micros   30.49 secs

```

```
time git submodule update --init --recursive --jobs 0 # use all online cpus
 ________________________________________________________
Executed in  129.75 secs    fish           external
   usr time   51.64 secs  181.00 micros   51.64 secs
   sys time   31.49 secs  781.00 micros   31.49 secs

```

Test Plan: Imported from OSS

Reviewed By: 1ntEgr8

Differential Revision: D29560875

Pulled By: zhouzhuojie

fbshipit-source-id: 556027dffe744c66428075a8a1bf64683930aaaf
2021-07-07 16:28:18 -07:00
..
External cmake: Enable (s)ccache for nccl builds (#55814) 2021-04-13 14:49:25 -07:00
Modules Add --jobs 0 for git submodule update (#61311) 2021-07-07 16:28:18 -07:00
Modules_CUDA_fix Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
public Add USE_WHOLE_CUDNN option (#59744) 2021-06-09 21:12:42 -07:00
Allowlist.cmake
BuildVariables.cmake
Caffe2Config.cmake.in
Caffe2ConfigVersion.cmake.in Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
cmake_uninstall.cmake.in
Codegen.cmake Migrate THAllocator to ATen (#60325) 2021-06-24 19:42:14 -07:00
DebugHelper.cmake
Dependencies.cmake Add PocketFFT support (#60976) 2021-06-30 16:28:20 -07:00
GoogleTestPatch.cmake Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
iOS.cmake Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
Metal.cmake
MiscCheck.cmake
ProtoBuf.cmake
ProtoBufPatch.cmake
Summary.cmake [CMake] Split caffe2::cudnn into public and private (#59721) 2021-06-09 13:18:48 -07:00
TorchConfig.cmake.in Expand Kineto platform support (ci-all) (#56323) 2021-05-05 15:00:01 -07:00
TorchConfigVersion.cmake.in
VulkanCodegen.cmake [vulkan] Fix glslc path for desktop build (#56507) 2021-05-11 14:18:39 -07:00
VulkanDependencies.cmake