2222 centos8_cuda11 :
2323 build_container : centos8_cuda11
2424 artifact_name : $(POSTFIX)-centos8-mofed5-cuda11.tar.bz2
25- ubuntu16_cuda11 :
26- build_container : ubuntu16_cuda11
27- artifact_name : $(POSTFIX)-ubuntu16.04-mofed5-cuda11.tar.bz2
2825 ubuntu18_cuda11 :
2926 build_container : ubuntu18_cuda11
3027 artifact_name : $(POSTFIX)-ubuntu18.04-mofed5-cuda11.tar.bz2
6259
6360 - bash : |
6461 set -eEx
62+
63+ # Build
6564 ./autogen.sh
6665 ./contrib/configure-release --with-cuda --with-java=no
6766 make dist
@@ -71,11 +70,20 @@ jobs:
7170 echo 10 > debian/compat # https://www.debian.org/doc/manuals/maint-guide/dother.en.htmdpl#compat
7271 dpkg-buildpackage -us -uc -Pcuda
7372 cd .. # Move back to the working directory
74- find . -name '*.deb'
75- VER="${POSTFIX#ucx-}" # Remove 'ucx' prefix from the POSTFIX string
76- # Rename DEB files
73+
74+ # Rename DEB files
75+ VER="${POSTFIX#ucx-}" # Remove 'ucx-' prefix from the POSTFIX string
7776 find . -name "ucx*.deb" -exec bash -c 'mv "$1" "${1%%_*}-'"${VER}"'.deb"' _ {} \;
77+ find . -name '*.deb' # Show new names
78+
79+ # Remove superfluous dependency
80+ dpkg-deb -R "ucx-cuda-${VER}.deb" tmp # Extract
81+ sed -i 's/libnvidia-compute-[0-9]* | libnvidia-ml1, //g' tmp/DEBIAN/control
82+ dpkg-deb -b tmp "ucx-cuda-${VER}.deb" # Rebuild
83+ dpkg-deb -I "ucx-cuda-${VER}.deb"
7884 dpkg-deb -I "ucx-${VER}.deb"
85+
86+ # Package
7987 tar -cjf "${AZ_ARTIFACT_NAME}" *.deb # Package all DEBs
8088 tar -tjf "${AZ_ARTIFACT_NAME}"
8189 displayName: Build DEB package
0 commit comments