2e1fd5a3c4
* HIP API perfetto args + updated perfetto categories
- Support for HIP API args field in perfetto
- PERFETTO_CATEGORIES -> OMNITRACE_PERFETTO_CATEGORIES
- Changed perfetto categories for several trace events and trace counters
- migrated several TRACE_EVENT_* to use omnitrace::tracing::{push,pop}_perfetto_ts(...)
* Tweaked category_region to encode the type of args as well as value
- Affects MPI args field in perfetto
* Improved testing in ubuntu-focal.yml
- "Test Install" step sources setup-env.sh
- "Test Install" step tests python support
- "Test Install" step tests reading ~/.omnitrace.cfg
- Avoid installing boost and tbb libs when building from submodule
* validate-perfetto-proto.py accepts -m / --categories
* Remove reference from category_region typeids
* Tweak opensuse action name
* Tweak the "Test Install" Step of ubuntu-focal
164 wiersze
5.4 KiB
YAML
164 wiersze
5.4 KiB
YAML
name: Ubuntu 20.04 (GCC, MPICH, OpenMPI)
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
pull_request:
|
|
branches: [ main, develop ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
ELFUTILS_DOWNLOAD_VERSION: 0.186
|
|
OMNITRACE_VERBOSE: 1
|
|
OMNITRACE_CI: ON
|
|
|
|
jobs:
|
|
ubuntu-focal:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
compiler: ['g++']
|
|
mpi: [ '', 'libmpich-dev mpich', 'libopenmpi-dev openmpi-bin libfabric-dev' ]
|
|
boost: ['OFF']
|
|
tbb: ['OFF']
|
|
build-type: ['Release']
|
|
python: ['ON']
|
|
ompt: ['ON']
|
|
papi: ['ON']
|
|
deps: ['libtbb-dev libboost-{atomic,system,thread,date-time,filesystem,timer}-dev']
|
|
include:
|
|
- compiler: 'g++'
|
|
mpi: ''
|
|
boost: 'ON'
|
|
tbb: 'ON'
|
|
build-type: 'Release'
|
|
python: 'ON'
|
|
ompt: 'OFF'
|
|
papi: 'OFF'
|
|
deps: ''
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Packages
|
|
timeout-minutes: 5
|
|
run:
|
|
sudo apt-get update &&
|
|
sudo apt-get install -y build-essential m4 autoconf libtool python3-pip ${{ matrix.deps }} clang libomp-dev ${{ matrix.compiler }} ${{ matrix.mpi }} &&
|
|
python3 -m pip install --upgrade pip &&
|
|
python3 -m pip install numpy &&
|
|
python3 -m pip install perfetto &&
|
|
python3 -m pip install 'cmake==3.16.3'
|
|
|
|
- name: Configure Env
|
|
run:
|
|
echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV &&
|
|
echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV &&
|
|
echo "${HOME}/.local/bin" >> $GITHUB_PATH
|
|
|
|
- name: Configure CMake
|
|
timeout-minutes: 10
|
|
run:
|
|
cmake --version &&
|
|
if [ -z "${{ matrix.mpi }}" ]; then USE_MPI=OFF; else USE_MPI=ON; fi &&
|
|
cmake -B ${{ github.workspace }}/build
|
|
-DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')
|
|
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
|
|
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
|
|
-DCMAKE_INSTALL_PREFIX=/opt/omnitrace
|
|
-DOMNITRACE_BUILD_TESTING=ON
|
|
-DOMNITRACE_BUILD_DYNINST=ON
|
|
-DOMNITRACE_USE_MPI=${USE_MPI}
|
|
-DOMNITRACE_USE_HIP=OFF
|
|
-DOMNITRACE_USE_PYTHON=${{ matrix.python }}
|
|
-DOMNITRACE_USE_OMPT=${{ matrix.ompt }}
|
|
-DOMNITRACE_USE_PAPI=${{ matrix.papi }}
|
|
-DDYNINST_BUILD_ELFUTILS=ON
|
|
-DDYNINST_BUILD_LIBIBERTY=ON
|
|
-DDYNINST_BUILD_TBB=${{ matrix.tbb }}
|
|
-DDYNINST_BUILD_BOOST=${{ matrix.boost }}
|
|
-DDYNINST_BUILD_SHARED_LIBS=ON
|
|
-DDYNINST_BUILD_STATIC_LIBS=OFF
|
|
-DDYNINST_ELFUTILS_DOWNLOAD_VERSION=${{ env.ELFUTILS_DOWNLOAD_VERSION }}
|
|
|
|
- name: Build
|
|
timeout-minutes: 45
|
|
run:
|
|
cmake --build ${{ github.workspace }}/build --target all --parallel 2 -- VERBOSE=1
|
|
|
|
- name: Test
|
|
timeout-minutes: 45
|
|
working-directory: ${{ github.workspace }}/build
|
|
run:
|
|
ctest -V -N -O ${{ github.workspace }}/build/omnitrace-ctest-${{ github.job }}-commands.log &&
|
|
ctest -V --output-log ${{ github.workspace }}/build/omnitrace-ctest-${{ github.job }}.log --stop-on-failure
|
|
|
|
- name: Install
|
|
working-directory: ${{ github.workspace }}/build
|
|
run: |
|
|
cpack -G STGZ
|
|
mkdir -p /opt/omnitrace
|
|
./omnitrace-*.sh --prefix=/opt/omnitrace --exclude-subdir --skip-license
|
|
|
|
- name: Test Install
|
|
timeout-minutes: 15
|
|
run: |
|
|
set -v
|
|
source /opt/omnitrace/share/omnitrace/setup-env.sh
|
|
cat << EOF > ${HOME}/.omnitrace.cfg
|
|
OMNITRACE_VERBOSE = 2
|
|
OMNITRACE_USE_TIMEMORY = ON
|
|
OMNITRACE_USE_PERFETTO = ON
|
|
OMNITRACE_USE_SAMPLING = ON
|
|
OMNITRACE_USE_PROCESS_SAMPLING = ON
|
|
OMNITRACE_OUTPUT_PATH = omnitrace-tests-output
|
|
OMNITRACE_OUTPUT_PREFIX = %tag%/
|
|
OMNITRACE_SAMPLING_FREQ = 50
|
|
OMNITRACE_SAMPLING_DELAY = 0.05
|
|
EOF
|
|
which omnitrace-avail
|
|
ldd $(which omnitrace-avail)
|
|
omnitrace-avail --help
|
|
omnitrace-avail -a
|
|
which omnitrace-critical-trace
|
|
ldd $(which omnitrace-critical-trace)
|
|
which omnitrace-python
|
|
omnitrace-python --help
|
|
omnitrace-python -b -- ${{ github.workspace }}/examples/python/builtin.py
|
|
which omnitrace
|
|
ldd $(which omnitrace)
|
|
omnitrace --help
|
|
omnitrace -e -v 1 -o ls.inst --simulate -- ls
|
|
for i in omnitrace-tests-output/ls.inst/*; do echo -e "\n\n --> ${i} \n\n"; cat ${i}; done
|
|
omnitrace -e -v 1 -o ls.inst -- ls
|
|
./ls.inst
|
|
omnitrace -e -v 1 --simulate -- ls
|
|
for i in omnitrace-tests-output/ls/*; do echo -e "\n\n --> ${i} \n\n"; cat ${i}; done
|
|
omnitrace -e -v 1 -- ls
|
|
|
|
- name: Test User API
|
|
timeout-minutes: 10
|
|
run: |
|
|
set -v
|
|
${{ github.workspace }}/scripts/test-find-package.sh --install-dir /opt/omnitrace
|
|
|
|
- name: CTest Artifacts
|
|
if: success() || failure()
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ctest-${{ github.job }}-log
|
|
path: |
|
|
${{ github.workspace }}/build/*.log
|
|
|
|
- name: Data Artifacts
|
|
if: success() || failure()
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: data-${{ github.job }}-files
|
|
path: |
|
|
${{ github.workspace }}/build/omnitrace-tests-output/**/*.txt
|
|
${{ github.workspace }}/build/omnitrace-tests-output/**/*-instr*.json
|