Checkout submodules with shallow depth (#1353)
* Make submodules shallow * Updated README for the shallow checkout changes.
This commit is contained in:
committed by
GitHub
parent
06a0ddb3b4
commit
7231808c58
@@ -2,7 +2,9 @@
|
||||
path = ext-src/mscclpp
|
||||
url = https://github.com/microsoft/mscclpp.git
|
||||
ignore = dirty
|
||||
shallow = true
|
||||
[submodule "ext-src/json"]
|
||||
path = ext-src/json
|
||||
url = https://github.com/nlohmann/json.git
|
||||
ignore = dirty
|
||||
shallow = true
|
||||
|
||||
@@ -68,17 +68,16 @@ By default, RCCL builds for all GPU targets defined in `DEFAULT_GPUS` in `CMakeL
|
||||
### To build the library using CMake:
|
||||
|
||||
```shell
|
||||
$ git clone https://github.com/ROCm/rccl.git --recurse-submodules
|
||||
$ git clone --recursive https://github.com/ROCm/rccl.git
|
||||
$ cd rccl
|
||||
$ mkdir build
|
||||
$ cd build
|
||||
$ cmake ..
|
||||
$ make -j 16 # Or some other suitable number of parallel jobs
|
||||
```
|
||||
If you have already cloned, you can checkout the `mscclpp` submodule manually.
|
||||
If you have already cloned, you can checkout the external submodules manually.
|
||||
```shell
|
||||
$ cd ext-src/mscclpp
|
||||
$ git submodule update --init --recursive
|
||||
$ git submodule update --init --recursive --depth=1
|
||||
```
|
||||
You may substitute an installation path of your own choosing by passing `CMAKE_INSTALL_PREFIX`. For example:
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user