-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5267 from amaslenn/topic/ci-rpm-spec-sync-v1.8
CI/RPM/SPEC: sync with master - v1.8.x
- Loading branch information
Showing
13 changed files
with
371 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
jobs: | ||
- job: distro_release | ||
displayName: distro | ||
|
||
pool: | ||
name: MLNX | ||
demands: | ||
- harbor_registry -equals yes | ||
|
||
strategy: | ||
matrix: | ||
centos7_cuda10_1: | ||
build_container: centos7_cuda10_1 | ||
artifact_name: ucx-${{ replace(variables['Build.SourceBranch'], 'refs/tags/', '') }}-centos7-mofed5.0-cuda10.1.tar.bz2 | ||
centos7_cuda10_2: | ||
build_container: centos7_cuda10_2 | ||
artifact_name: ucx-${{ replace(variables['Build.SourceBranch'], 'refs/tags/', '') }}-centos7-mofed5.0-cuda10.2.tar.bz2 | ||
ubuntu16_cuda10_1: | ||
build_container: ubuntu16_cuda10_1 | ||
artifact_name: ucx-${{ replace(variables['Build.SourceBranch'], 'refs/tags/', '') }}-ubuntu16.04-mofed5.0-cuda10.1.deb | ||
ubuntu16_cuda10_2: | ||
build_container: ubuntu16_cuda10_2 | ||
artifact_name: ucx-${{ replace(variables['Build.SourceBranch'], 'refs/tags/', '') }}-ubuntu16.04-mofed5.0-cuda10.2.deb | ||
ubuntu18_cuda10_1: | ||
build_container: ubuntu18_cuda10_1 | ||
artifact_name: ucx-${{ replace(variables['Build.SourceBranch'], 'refs/tags/', '') }}-ubuntu18.04-mofed5.0-cuda10.1.deb | ||
ubuntu18_cuda10_2: | ||
build_container: ubuntu18_cuda10_2 | ||
artifact_name: ucx-${{ replace(variables['Build.SourceBranch'], 'refs/tags/', '') }}-ubuntu18.04-mofed5.0-cuda10.2.deb | ||
|
||
container: $[ variables['build_container'] ] | ||
|
||
steps: | ||
- checkout: self | ||
clean: true | ||
path: "we/need/to/go/deeper" | ||
# ^ Avoid rpmbuild error: Dest dir longer than base dir is not supported | ||
|
||
- bash: | | ||
set -eE | ||
./autogen.sh | ||
./contrib/configure-release --with-cuda | ||
displayName: Configure | ||
- bash: | | ||
set -eE | ||
./contrib/buildrpm.sh -s -t -b --strict-ibverbs-dep | ||
cd rpm-dist/`uname -m` | ||
tar -cjf "../../${AZ_ARTIFACT_NAME}" *.rpm | ||
cd ../.. | ||
ls -l "${AZ_ARTIFACT_NAME}" | ||
tar -tjf "${AZ_ARTIFACT_NAME}" | ||
displayName: Build RPM package | ||
condition: and(succeeded(), contains(variables['artifact_name'], 'centos')) | ||
env: | ||
AZ_ARTIFACT_NAME: $(artifact_name) | ||
- bash: | | ||
set -eE | ||
dpkg-buildpackage -us -uc | ||
find .. -name '*.deb' -exec cp {} "${AZ_ARTIFACT_NAME}" \; | ||
ls -l "${AZ_ARTIFACT_NAME}" | ||
displayName: Build DEB package | ||
condition: and(succeeded(), contains(variables['artifact_name'], 'ubuntu')) | ||
env: | ||
AZ_ARTIFACT_NAME: $(artifact_name) | ||
- task: GithubRelease@0 | ||
displayName: Upload artifacts to draft release | ||
inputs: | ||
githubConnection: release | ||
repositoryName: openucx/ucx | ||
action: edit | ||
tag: $(Build.SourceBranchName) | ||
isDraft: true | ||
addChangeLog: false | ||
assetUploadMode: replace | ||
assets: "./$(artifact_name)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
ARG CUDA_VERSION=10.1 | ||
FROM nvidia/cuda:${CUDA_VERSION}-devel-centos7 | ||
|
||
RUN yum install -y \ | ||
autoconf \ | ||
automake \ | ||
doxygen \ | ||
file \ | ||
gcc-c++ \ | ||
git \ | ||
glibc-devel \ | ||
libtool \ | ||
make \ | ||
maven \ | ||
numactl-devel \ | ||
rdma-core-devel \ | ||
rpm-build \ | ||
tcl \ | ||
tcsh \ | ||
tk \ | ||
wget \ | ||
&& yum clean all | ||
|
||
# MOFED | ||
ARG MOFED_VERSION=5.0-1.0.0.0 | ||
ARG MOFED_OS=rhel7.6 | ||
ENV MOFED_DIR MLNX_OFED_LINUX-${MOFED_VERSION}-${MOFED_OS}-x86_64 | ||
ENV MOFED_SITE_PLACE MLNX_OFED-${MOFED_VERSION} | ||
ENV MOFED_IMAGE ${MOFED_DIR}.tgz | ||
RUN wget --no-verbose http://content.mellanox.com/ofed/${MOFED_SITE_PLACE}/${MOFED_IMAGE} && \ | ||
tar -xzf ${MOFED_IMAGE} && \ | ||
${MOFED_DIR}/mlnxofedinstall --all -q \ | ||
--user-space-only \ | ||
--without-fw-update \ | ||
--skip-distro-check \ | ||
--without-ucx \ | ||
--without-hcoll \ | ||
--without-openmpi \ | ||
--without-sharp \ | ||
&& rm -rf ${MOFED_DIR} && rm -rf *.tgz | ||
|
||
ENV CPATH /usr/local/cuda/include:${CPATH} | ||
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:/usr/local/cuda/compat:${LD_LIBRARY_PATH} | ||
ENV LIBRARY_PATH /usr/local/cuda/lib64:/usr/local/cuda/compat:${LIBRARY_PATH} | ||
ENV PATH /usr/local/cuda/compat:${PATH} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
version: "3" | ||
|
||
services: | ||
centos7-mofed5.0-cuda10.1: | ||
image: centos7-mofed5.0-cuda10.1 | ||
build: | ||
context: . | ||
dockerfile: centos7-release.Dockerfile | ||
args: | ||
MOFED_VERSION: 5.0-1.0.0.0 | ||
MOFED_OS: rhel7.6 | ||
CUDA_VERSION: 10.1 | ||
centos7-mofed5.0-cuda10.2: | ||
image: centos7-mofed5.0-cuda10.2 | ||
build: | ||
context: . | ||
dockerfile: centos7-release.Dockerfile | ||
args: | ||
MOFED_VERSION: 5.0-1.0.0.0 | ||
MOFED_OS: rhel7.6 | ||
CUDA_VERSION: 10.2 | ||
ubuntu16.04-mofed5.0-cuda10.1: | ||
image: ubuntu16.04-mofed5.0-cuda10.1 | ||
build: | ||
context: . | ||
dockerfile: ubuntu-release.Dockerfile | ||
args: | ||
MOFED_VERSION: 5.0-1.0.0.0 | ||
UBUNTU_VERSION: 16.04 | ||
CUDA_VERSION: 10.1 | ||
ubuntu16.04-mofed5.0-cuda10.2: | ||
image: ubuntu16.04-mofed5.0-cuda10.2 | ||
build: | ||
context: . | ||
dockerfile: ubuntu-release.Dockerfile | ||
args: | ||
MOFED_VERSION: 5.0-1.0.0.0 | ||
UBUNTU_VERSION: 16.04 | ||
CUDA_VERSION: 10.2 | ||
ubuntu18.04-mofed5.0-cuda10.1: | ||
image: ubuntu18.04-mofed5.0-cuda10.1 | ||
build: | ||
context: . | ||
dockerfile: ubuntu-release.Dockerfile | ||
args: | ||
MOFED_VERSION: 5.0-1.0.0.0 | ||
UBUNTU_VERSION: 18.04 | ||
CUDA_VERSION: 10.1 | ||
ubuntu18.04-mofed5.0-cuda10.2: | ||
image: ubuntu18.04-mofed5.0-cuda10.2 | ||
build: | ||
context: . | ||
dockerfile: ubuntu-release.Dockerfile | ||
args: | ||
MOFED_VERSION: 5.0-1.0.0.0 | ||
UBUNTU_VERSION: 18.04 | ||
CUDA_VERSION: 10.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.