File tree Expand file tree Collapse file tree 1 file changed +43
-1
lines changed Expand file tree Collapse file tree 1 file changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,40 @@ init_ubuntu() {
7777 pip3 uninstall -y tensorrt
7878}
7979
80+ init_ubuntu_2204 () {
81+ apt-get update
82+ # libibverbs-dev is installed but libmlx5.so is missing, reinstall the package
83+ apt-get --reinstall install -y libibverbs-dev
84+ apt-get install -y --no-install-recommends \
85+ ccache \
86+ gdb \
87+ git-lfs \
88+ clang \
89+ lld \
90+ llvm \
91+ libffi-dev \
92+ libnuma1 \
93+ libnuma-dev \
94+ python3-dev \
95+ python3-pip \
96+ python-is-python3 \
97+ wget \
98+ pigz \
99+ libzmq3-dev
100+ if ! command -v mpirun & > /dev/null; then
101+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openmpi-bin libopenmpi-dev
102+ fi
103+ echo ' export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> " ${ENV} "
104+ # Remove previous TRT installation
105+ if [[ $( apt list --installed | grep libnvinfer) ]]; then
106+ apt-get remove --purge -y libnvinfer*
107+ fi
108+ if [[ $( apt list --installed | grep tensorrt) ]]; then
109+ apt-get remove --purge -y tensorrt*
110+ fi
111+ pip3 uninstall -y tensorrt
112+ }
113+
80114install_python_rockylinux () {
81115 PYTHON_VERSION=$1
82116 PYTHON_MAJOR=" 3"
@@ -138,10 +172,18 @@ install_gcctoolset_rockylinux() {
138172
139173# Install base packages depending on the base OS
140174ID=$( grep -oP ' (?<=^ID=).+' /etc/os-release | tr -d ' "' )
175+ VERSION_ID=$( grep -oP ' (?<=^VERSION_ID=).+' /etc/os-release | tr -d ' "' )
141176set_bash_env
142177case " $ID " in
143178 ubuntu)
144- init_ubuntu
179+ case " $VERSION_ID " in
180+ 22.04)
181+ init_ubuntu_2204
182+ ;;
183+ * )
184+ init_ubuntu
185+ ;;
186+ esac
145187 ;;
146188 rocky)
147189 install_python_rockylinux $1
You can’t perform that action at this time.
0 commit comments