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
125 satır
3.7 KiB
YAML
125 satır
3.7 KiB
YAML
name: OpenSUSE 15 (GCC, Python)
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
pull_request:
|
|
branches: [ main, develop ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
BUILD_TYPE: Release
|
|
OMNITRACE_VERBOSE: 1
|
|
OMNITRACE_CI: ON
|
|
|
|
jobs:
|
|
opensuse:
|
|
runs-on: ubuntu-20.04
|
|
container:
|
|
image: jrmadsen/omnitrace-ci:opensuse-${{ matrix.os-release }}
|
|
strategy:
|
|
matrix:
|
|
compiler: ['g++']
|
|
os-release: [ '15.2', '15.3' ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install Packages
|
|
timeout-minutes: 5
|
|
run:
|
|
for i in 6 7 8 9 10; do /opt/conda/envs/py3.${i}/bin/python -m pip install numpy perfetto dataclasses; done
|
|
|
|
- name: Configure Env
|
|
run:
|
|
echo "CC=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')" >> $GITHUB_ENV &&
|
|
echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV &&
|
|
echo "/opt/omnitrace/bin:${HOME}/.local/bin" >> $GITHUB_PATH &&
|
|
echo "LD_LIBRARY_PATH=/opt/omnitrace/lib:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
|
|
|
|
- name: Configure CMake
|
|
timeout-minutes: 10
|
|
run:
|
|
git config --global --add safe.directory ${PWD} &&
|
|
cmake --version &&
|
|
cmake -B build
|
|
-DCMAKE_C_COMPILER=$(echo '${{ matrix.compiler }}' | sed 's/+/c/g')
|
|
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
|
|
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
|
|
-DCMAKE_INSTALL_PREFIX=/opt/omnitrace
|
|
-DOMNITRACE_BUILD_TESTING=ON
|
|
-DOMNITRACE_USE_MPI=OFF
|
|
-DOMNITRACE_USE_HIP=OFF
|
|
-DOMNITRACE_USE_OMPT=OFF
|
|
-DOMNITRACE_USE_PYTHON=ON
|
|
-DOMNITRACE_PYTHON_PREFIX=/opt/conda/envs
|
|
-DOMNITRACE_PYTHON_ENVS="py3.6;py3.7;py3.8;py3.9;py3.10"
|
|
-DOMNITRACE_CI_MPI_RUN_AS_ROOT=ON
|
|
|
|
- name: Build
|
|
timeout-minutes: 45
|
|
run:
|
|
cmake --build build --target all --parallel 2 -- VERBOSE=1
|
|
|
|
- name: Install
|
|
timeout-minutes: 5
|
|
run:
|
|
cmake --build build --target install --parallel 2
|
|
|
|
- name: Test
|
|
timeout-minutes: 45
|
|
run:
|
|
cd build &&
|
|
ldd ./omnitrace &&
|
|
./omnitrace --help &&
|
|
ctest -V -N -O omnitrace-ctest-${{ github.job }}-commands.log &&
|
|
ctest -V --output-log omnitrace-ctest-${{ github.job }}.log --stop-on-failure
|
|
|
|
- name: Test Install
|
|
timeout-minutes: 10
|
|
run: |
|
|
set -v
|
|
export OMNITRACE_DEBUG=ON
|
|
which omnitrace-avail
|
|
ldd $(which omnitrace-avail)
|
|
omnitrace-avail --help
|
|
omnitrace-avail -a
|
|
which omnitrace-critical-trace
|
|
ldd $(which omnitrace-critical-trace)
|
|
which omnitrace
|
|
ldd $(which omnitrace)
|
|
omnitrace --help
|
|
omnitrace -e -v 1 -o ls.inst --simulate -- ls
|
|
for i in omnitrace-ls.inst-output/*; 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-ls-output/*; 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
|
|
./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: |
|
|
build/*.log
|
|
|
|
- name: Data Artifacts
|
|
if: success() || failure()
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: data-${{ github.job }}-files
|
|
path: |
|
|
build/omnitrace-tests-output/**/*.txt
|
|
build/omnitrace-tests-output/**/*-instr*.json
|