Skip to content

Commit

Permalink
Update prepare_build_environment.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored Dec 13, 2023
1 parent 17cfd18 commit 895a2a2
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ci/prepare_build_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,18 @@ fi

install_protobuf_centos() {
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -SLO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
unzip protoc-3.15.8-linux-x86_64.zip -d /usr
rm protoc-3.15.8-linux-x86_64.zip
}

install_hipblas_5_7_2_centos() {
curl -SL https://repo.radeon.com/amdgpu-install/5.7.2/rhel/7.9/amdgpu-install-5.7.50702-1.el7.noarch.rpm --output /tmp/amdgpu-install.rpm
yum -y install /tmp/amdgpu-install.rpm
rm /tmp/amdgpu-install.rpm
yum -y install hipblas-devel hipblaslt-devel rocblas-devel
}

if [[ "$OSTYPE" == "linux"* ]]; then
if command -v apt-get ; then
sudo apt-get -y install protobuf-compiler libopenblas-dev
else
# Build from manylinux2014 container
yum -y install openblas-devel perl-IPC-Cmd unzip curl openssl-devel

if [[ "$ROCM" == "5.7.2" ]]; then
install_hipblas_5_7_2_centos
fi

# Disable safe directory in docker
git config --system --add safe.directory "*"

Expand Down

0 comments on commit 895a2a2

Please sign in to comment.