Skip to content

Commit 1c7e81c

Browse files
fix: remove manual install of older libbnxt-re version
Signed-off-by: simondanielsson <simon.danielsson99@hotmail.com>
1 parent 95ac360 commit 1c7e81c

1 file changed

Lines changed: 0 additions & 50 deletions

File tree

benchmarks/multi_node/amd_utils/setup_deps.sh

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -228,60 +228,10 @@ install_amd_quark() {
228228
_SETUP_INSTALLED+=("amd-quark")
229229
}
230230

231-
# ---------------------------------------------------------------------------
232-
# 8. Broadcom bnxt RDMA userspace libraries (libbnxt_re verbs provider)
233-
# Required on nodes with Broadcom Thor2 NICs (bcm5760x) when the base
234-
# image does not ship the bnxt_re verbs provider.
235-
# ---------------------------------------------------------------------------
236-
install_bnxt_rdma() {
237-
local existing
238-
existing=$(find /usr/local/lib /usr/lib64 /usr/lib -name "libbnxt_re-rdmav*.so" 2>/dev/null)
239-
if [[ -n "$existing" ]]; then
240-
echo "[SETUP] Existing bnxt RDMA libraries found (will override):"
241-
for lib in $existing; do
242-
echo " $lib ($(ls -l "$lib" 2>/dev/null | awk '{print $5, $6, $7, $8}'))"
243-
done
244-
fi
245-
246-
echo "[SETUP] Installing bnxt RDMA build dependencies..."
247-
apt-get update -q -y && apt-get install -q -y \
248-
wget unzip autoconf automake libtool pkg-config \
249-
libibverbs-dev librdmacm-dev ibverbs-utils \
250-
&& rm -rf /var/lib/apt/lists/*
251-
252-
echo "[SETUP] Downloading and building Broadcom bnxt RDMA userspace libraries..."
253-
(
254-
set -e
255-
cd /tmp
256-
wget -q https://docs.broadcom.com/docs-and-downloads/ethernet-network-adapters/NXE/Thor2/GCA1/bcm5760x_230.2.52.0a.zip
257-
unzip -q bcm5760x_230.2.52.0a.zip
258-
cd bcm5760x_230.2.52.0a/drivers_linux/bnxt_rocelib/
259-
results=$(find . -name "libbnxt*.tar.gz")
260-
tar -xf $results
261-
untar_dir=$(find . -maxdepth 1 -type d -name "libbnxt*" ! -name "*.tar.gz" | head -n 1)
262-
cd "$untar_dir"
263-
sh autogen.sh
264-
./configure
265-
make -j"$(nproc)"
266-
find /usr/lib64/ /usr/lib -name "libbnxt_re-rdmav*.so" -exec mv {} {}.inbox \; 2>/dev/null || true
267-
make install all
268-
echo /usr/local/lib >> /etc/ld.so.conf
269-
ldconfig
270-
cp -f bnxt_re.driver /etc/libibverbs.d/
271-
)
272-
rm -rf /tmp/bcm5760x_230.2.52.0a /tmp/bcm5760x_230.2.52.0a.zip
273-
274-
if ! ibv_devices 2>/dev/null; then
275-
echo "[SETUP] WARN: ibv_devices failed after bnxt install (may be OK if no Broadcom NIC on this node)"
276-
fi
277-
_SETUP_INSTALLED+=("bnxt-rdma")
278-
}
279-
280231
# =============================================================================
281232
# Run installers
282233
# =============================================================================
283234

284-
install_bnxt_rdma
285235
install_recipe_deps
286236
install_amd_quark
287237

0 commit comments

Comments
 (0)