From fba4924d33f06ae1139feb6859e5c4c374c0dc33 Mon Sep 17 00:00:00 2001 From: Ayush Vikram <54920638+avikram2@users.noreply.github.com> Date: Wed, 17 Jan 2024 09:46:55 -0800 Subject: [PATCH 1/2] Update amd.sh --- src/worker/install/amd.sh | 67 ++++++++++++++++++++++++--------------- 1 file changed, 42 insertions(+), 25 deletions(-) diff --git a/src/worker/install/amd.sh b/src/worker/install/amd.sh index fae0659..b214250 100644 --- a/src/worker/install/amd.sh +++ b/src/worker/install/amd.sh @@ -4,32 +4,49 @@ set -e # install dependencies source ./$(dirname "${BASH_SOURCE[0]}")/common.sh -apt-get install -y automake make g++ unzip build-essential autoconf libtool pkg-config libgflags-dev libgtest-dev libc++-dev curl libcap-dev +sudo apt-get install -y automake make g++ unzip build-essential autoconf libtool pkg-config libgflags-dev libgtest-dev libc++-dev curl libcap-dev # install grpc -export GRPC_LIB_DIR=/usr/local/lib -git clone -b v1.28.1 https://github.com/grpc/grpc /opt/grpc ||: -cd /opt/grpc -git submodule update --init -mkdir -p cmake/build -cd cmake/build -cmake -DgRPC_INSTALL=ON -DBUILD_SHARED_LIBS=ON ../.. -make -j -make install -echo ${GRPC_LIB_DIR} | tee /etc/ld.so.conf.d/grpc.conf +export GRPC_ROOT=/opt/grpc -# install RDC -export RDC_LIB_DIR=/opt/rocm/rdc/lib -git clone https://github.com/RadeonOpenCompute/rdc /opt/rdc ||: -mkdir -p /opt/rdc/build -cd /opt/rdc/build -cmake -DROCM_DIR=/opt/rocm -DGRPC_ROOT="/usr/local" .. -make -j -make install -cat > /etc/ld.so.conf.d/x86_64-librdc_client.conf < Date: Thu, 18 Jan 2024 14:45:02 -0800 Subject: [PATCH 2/2] Update amd.sh removed sudo --- src/worker/install/amd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/worker/install/amd.sh b/src/worker/install/amd.sh index b214250..d5ffb67 100644 --- a/src/worker/install/amd.sh +++ b/src/worker/install/amd.sh @@ -4,7 +4,7 @@ set -e # install dependencies source ./$(dirname "${BASH_SOURCE[0]}")/common.sh -sudo apt-get install -y automake make g++ unzip build-essential autoconf libtool pkg-config libgflags-dev libgtest-dev libc++-dev curl libcap-dev +apt-get install -y automake make g++ unzip build-essential autoconf libtool pkg-config libgflags-dev libgtest-dev libc++-dev curl libcap-dev # install grpc export GRPC_ROOT=/opt/grpc @@ -25,7 +25,7 @@ cmake -B build \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release make -C build -j $(nproc) -sudo make -C build install +make -C build install echo "$GRPC_ROOT" | sudo tee /etc/ld.so.conf.d/grpc.conf