Skip to content

Commit

Permalink
mellanox driver installation script and other misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed May 4, 2024
1 parent b5a84ca commit 30271d5
Show file tree
Hide file tree
Showing 8 changed files with 223 additions and 181 deletions.
4 changes: 4 additions & 0 deletions hpc/admin/setup-debian.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/bin/bash

export DEBIAN_FRONTEND=noninteractive
apt update
apt upgrade -y
apt install -y --no-install-recommends \
autoconf \
build-essential \
bzip2 \
environment-modules \
gawk \
gcc \
git \
make \
perl \
python3 \
Expand Down
9 changes: 7 additions & 2 deletions hpc/admin/setup-rhel.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/bash
dnf -y up
dnf -y install \

dnf up -y
dnf install -y \
autoconf \
bzip2 \
environment-modules \
gawk \
gcc \
gcc-c++ \
git \
glibc-devel \
make \
perl \
python3 \
Expand Down
3 changes: 2 additions & 1 deletion hpc/libraries/gcc-build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

GCC_VER=12.3.0
INSTALL_DIR=/opt/libraries/gcc-${GCC_VER}

BUILD_DIR=/tmp/_build_$(date +'%Y%m%d%H%M%S')
CWD=${PWD}
cd ${BUILD_DIR}
mkdir ${BUILD_DIR} && cd $_

NUM_PROCS=$(nproc)
PROCS_TO_USE=$(expr $NUM_PROCS \* 3 / 2) # use 1.5 times as the build is heavily io bound
Expand Down
33 changes: 33 additions & 0 deletions hpc/network/mellanox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
# login as root, and run: bash mellanox.sh
# download mellanox driver from https://network.nvidia.com/products/infiniband-drivers/linux/mlnx_ofed/
# tested on AlmaLinux 9.3

yum install -y \
autoconf \
automake \
cpio \
ethtool \
fuse-libs \
gcc-gfortran \
kernel \
kernel-devel \
kernel-modules-extra \
kernel-rpm-macros \
libnl3 \
libtool \
libusbx \
lsof \
numactl-libs \
patch \
pciutils \
python3-devel \
rpm-build \
tcsh \
tk

KERNEL=( $(rpm -q kernel | sed 's/kernel\-//g') )
KERNEL=${KERNEL[-1]}

tar -xf MLNX_OFED_LINUX-5.8-4.1.5.0-rhel9.3-x86_64.tgz
./MLNX_OFED_LINUX-5.8-4.1.5.0-rhel9.3-x86_64/mlnxofedinstall --kernel $KERNEL --kernel-sources /usr/src/kernels/${KERNEL} --add-kernel-support --skip-repo

0 comments on commit 30271d5

Please sign in to comment.