713d08de6d
* Testing and CI support for Ubuntu 22.04
* Fixes for ROCm
- Jammy does not have ROCm installers
* Name, timeout, and python updates
- renamed ubuntu-jammy-external.yml to ubuntu-jammy.yml
- increased all 5 minute timeouts to 10 minutes
- include python 3.10 in testing
* Update dyninst to remove interposed definition of _r_debug
* Rebuild Dyninst + test install script
* Revert container change
* git safe directory
* pushd -> cd
* fix MPI include
* Fix testing step
* OMPI_ALLOW_RUN_AS_ROOT
* Test script changes
* Fix mismatched malloc / delete[]
* Jammy workflow tweaks
* CPack tweak for boost deb deps
* pthread_mutex_gotcha config returns when not enabled
* fix echoing config in CI
* USE_CLANG_OMP
- option to disable using LLVM OpenMP when building OpenMP test executables
- Jammy workflow sets USE_CLANG_OMP=OFF
* Dyninst submodule boost download
- updated containers workflow to include jammy
- updated workflow to use ci
* Updates to workflows + replace test-install.sh
- test-install.sh in this branch was replaced with one in main branch
* Expand jammy test-install.sh args
* Fix openmp-cg-sampling-duration test
* update timemory submodule
- use-after-free violation in popen::pclose
* revert some tweaks to sampling-duration test
* Fix env of test-install.sh
* cmake format
* jammy bash
* CPack install for jammy
* formatting workflow action version bump
* Update timemory submodule
- libunwind submodule via timemory sets SOVERSION to 99 to avoid ABI conflicts with v8
* Fix help menu for omnitrace-sample
* Support other boolean forms in test-install.sh
* Update docker files and build-docker.sh
- consolidated cases in build-docker.sh
- support rocm version of 0.0 (no rocm install)
- support rocm v5.3
- updated centos handling
* update opensuse actions/checkout version
* Tweaks to ubuntu-focal testing
- actions/checkout@v3
- use test-install script
* update cpack
- ubuntu 22.04
- rocm 5.3
- rename os matrix field to os-version
- remove CI_ROCM_VERSION (no longer necessary)
- remove default-rocm-version matrix field (no longer necessary)
- CentOS packaging
* fix argparsing and omnitrace-sample tests in install-tests.sh
* focal rocm test install workflow fix
* Fix omnitrace-sample build
* Dockerfile.centos + build-docker.sh updates
* Update actions/upload-artifact version
* Dockerfile.ubuntu: install rocm-device-libs
* Refactor cpack
* fix cpack if quotes
* Dockerfile.ubuntu rocm < 5 installs rocm-dev
* build-release.sh defaults to boost version 1.79.0
[ROCm/rocprofiler-systems commit: ede6007f9b]
153 rader
3.5 KiB
Bash
Executable File
153 rader
3.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
: ${USER:=$(whoami)}
|
|
: ${DISTRO:=ubuntu}
|
|
: ${VERSIONS:=20.04}
|
|
: ${NJOBS=$(nproc)}
|
|
: ${ELFUTILS_VERSION:=0.186}
|
|
: ${BOOST_VERSION:=1.79.0}
|
|
: ${PUSH:=0}
|
|
|
|
verbose-run()
|
|
{
|
|
echo -e "\n### Executing \"${@}\"... ###\n"
|
|
eval $@
|
|
}
|
|
|
|
tolower()
|
|
{
|
|
echo "$@" | awk -F '\|~\|' '{print tolower($1)}';
|
|
}
|
|
|
|
toupper()
|
|
{
|
|
echo "$@" | awk -F '\|~\|' '{print toupper($1)}';
|
|
}
|
|
|
|
usage()
|
|
{
|
|
print_option() { printf " --%-20s %-24s %s\n" "${1}" "${2}" "${3}"; }
|
|
echo "Options:"
|
|
print_option "help -h" "" "This message"
|
|
print_option "push" "" "Push the container to DockerHub when completed"
|
|
|
|
echo ""
|
|
print_default_option() { printf " --%-20s %-24s %s (default: %s)\n" "${1}" "${2}" "${3}" "$(tolower ${4})"; }
|
|
print_default_option distro "[ubuntu|opensuse]" "OS distribution" "${DISTRO}"
|
|
print_default_option versions "[VERSION] [VERSION...]" "Ubuntu or OpenSUSE release" "${VERSIONS}"
|
|
print_default_option "jobs -j" "[N]" "parallel build jobs" "${NJOBS}"
|
|
print_default_option elfutils-version "[0.183..0.186]" "ElfUtils version" "${ELFUTILS_VERSION}"
|
|
print_default_option boost-version "[1.67.0..1.79.0]" "Boost version" "${BOOST_VERSION}"
|
|
print_default_option user "[USERNAME]" "DockerHub username" "${USER}"
|
|
}
|
|
|
|
send-error()
|
|
{
|
|
usage
|
|
echo -e "\nError: ${@}"
|
|
exit 1
|
|
}
|
|
|
|
reset-last()
|
|
{
|
|
last() { send-error "Unsupported argument :: ${1}"; }
|
|
}
|
|
|
|
reset-last
|
|
|
|
n=0
|
|
while [[ $# -gt 0 ]]
|
|
do
|
|
case "${1}" in
|
|
-h|--help)
|
|
usage
|
|
exit 0
|
|
;;
|
|
"--distro")
|
|
shift
|
|
DISTRO=${1}
|
|
last() { DISTRO="${DISTRO} ${1}"; }
|
|
;;
|
|
"--versions")
|
|
shift
|
|
VERSIONS=${1}
|
|
last() { VERSIONS="${VERSIONS} ${1}"; }
|
|
;;
|
|
--jobs|-j)
|
|
shift
|
|
NJOBS=${1}
|
|
reset-last
|
|
;;
|
|
"--elfutils-version")
|
|
shift
|
|
ELFUTILS_VERSION=${1}
|
|
reset-last
|
|
;;
|
|
"--boost-version")
|
|
shift
|
|
BOOST_VERSION=${1}
|
|
reset-last
|
|
;;
|
|
--user|-u)
|
|
shift
|
|
USER=${1}
|
|
reset-last
|
|
;;
|
|
"--push")
|
|
PUSH=1
|
|
reset-last
|
|
;;
|
|
--*)
|
|
reset-last
|
|
last ${1}
|
|
;;
|
|
*)
|
|
last ${1}
|
|
;;
|
|
esac
|
|
n=$((${n} + 1))
|
|
shift
|
|
done
|
|
|
|
DOCKER_FILE=Dockerfile.${DISTRO}.ci
|
|
|
|
if [ ! -f ${DOCKER_FILE} ]; then cd docker; fi
|
|
|
|
if [ ! -f ${DOCKER_FILE} ]; then
|
|
echo "Error! Execute script from source directory"
|
|
exit 1
|
|
fi
|
|
|
|
verbose-run rm -rf ./dyninst-source
|
|
verbose-run cp -r ../external/dyninst ./dyninst-source
|
|
verbose-run rm -rf ./dyninst-source/{build,install}*
|
|
|
|
set -e
|
|
|
|
DISTRO_IMAGE=${DISTRO}
|
|
|
|
if [ "${DISTRO}" = "opensuse" ]; then DISTRO_IMAGE="opensuse/leap"; fi
|
|
|
|
for VERSION in ${VERSIONS}
|
|
do
|
|
verbose-run docker build . \
|
|
-f ${DOCKER_FILE} \
|
|
--tag ${USER}/omnitrace:ci-base-${DISTRO}-${VERSION} \
|
|
--build-arg DISTRO=${DISTRO_IMAGE} \
|
|
--build-arg VERSION=${VERSION} \
|
|
--build-arg NJOBS=${NJOBS} \
|
|
--build-arg ELFUTILS_DOWNLOAD_VERSION=${ELFUTILS_VERSION} \
|
|
--build-arg BOOST_DOWNLOAD_VERSION=${BOOST_VERSION}
|
|
done
|
|
|
|
if [ "${PUSH}" -gt 0 ]; then
|
|
for VERSION in ${VERSIONS}
|
|
do
|
|
verbose-run docker push ${USER}/omnitrace:ci-base-${DISTRO}-${VERSION}
|
|
done
|
|
fi
|
|
|
|
verbose-run rm -rf ./dyninst-source
|