forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Modifies the current cmake build definitions to use `find_package` to find UCX and UCC installed in the system - Install UCX and UCC in CUDA dockers - Build PyTorch with `USE_UCC=1` in pipelines - Currently, we are not running unit tests with the UCC PG. Those tests will be added in future PRs. Pull Request resolved: pytorch#81583 Approved by: https://github.com/vtlam, https://github.com/malfet
- Loading branch information
1 parent
b4f7e22
commit cda210e
Showing
10 changed files
with
89 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
function install_ucx() { | ||
set -ex | ||
git clone --recursive https://github.com/openucx/ucx.git | ||
pushd ucx | ||
git checkout ${UCX_COMMIT} | ||
git submodule update --init --recursive | ||
|
||
./autogen.sh | ||
./configure --prefix=$UCX_HOME \ | ||
--enable-mt \ | ||
--enable-profiling \ | ||
--enable-stats | ||
time make -j | ||
sudo make install | ||
|
||
popd | ||
rm -rf ucx | ||
} | ||
|
||
function install_ucc() { | ||
set -ex | ||
git clone --recursive https://github.com/openucx/ucc.git | ||
pushd ucc | ||
git checkout ${UCC_COMMIT} | ||
git submodule update --init --recursive | ||
|
||
./autogen.sh | ||
./configure --prefix=$UCC_HOME --with-ucx=$UCX_HOME --with-nccl=no | ||
time make -j | ||
sudo make install | ||
|
||
popd | ||
rm -rf ucc | ||
} | ||
|
||
install_ucx | ||
install_ucc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters