Skip to content

Commit

Permalink
Checkout submodules with shallow depth (#1353)
Browse files Browse the repository at this point in the history
* Make submodules shallow

* Updated README for the shallow checkout changes.
  • Loading branch information
corey-derochie-amd authored Sep 27, 2024
1 parent 06a0ddb commit 7231808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7231808

Please sign in to comment.