Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated install dependencies script to accept a prefix #33

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions scripts/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
#!/bin/bash

set -e
set -o pipefail

# ROCm location
if [[ -z "${_ROCM_DIR}" ]]; then
export _ROCM_DIR=/opt/rocm
fi

# Location of dependencies source code
export _INSTALL_DIR=$HOME/installDIR
export _DEPS_SRC_DIR=$_INSTALL_DIR/src
# Location to install dependencies
if [[ -z "${_PREFIX}" ]]; then
export _PREFIX=$HOME/installDIR
fi

# Location of dependencies source code
export _DEPS_SRC_DIR=$_PREFIX/src
mkdir -p $_DEPS_SRC_DIR

#Adjust branches and installation location as necessary
export _UCX_INSTALL_DIR=$_INSTALL_DIR/ucx
export _UCX_INSTALL_DIR=$_PREFIX
export _UCX_REPO=https://github.com/openucx/ucx.git
export _UCX_BRANCH=v1.17.x

export _OMPI_INSTALL_DIR=$_INSTALL_DIR/ompi
export _OMPI_INSTALL_DIR=$_PREFIX
export _OMPI_REPO=https://github.com/open-mpi/ompi.git
export _OMPI_BRANCH=v5.0.x

Expand Down