roctracer: device and stream tracks (#209)

* roctracer: use multiple tracks for HIP streams

Use different perfetto tracks for each stream, and set the name of
these tracks to the stream pointer values. Setting the name like this
matches the args in the API traces.
This fixes overlapping work on multiple streams appearing as a call
stack.

* Fix -pedantic

* Run clang-format

* Add option to disable per stream tracks in perfetto

* Updated scheme for roctracer activity + general roctracer fixes

- Per-device tracks
- Handle HSA OPS in ROCm 5.3
  - the changes in ROCm 5.3 were causing HSA ops to get discarded
- Default for OMNITRACE_ROCTRACER_DISCARD_INVALID is now zero
  - i.e. default behavior is to flip beg_ns and end_ns when beg_ns > end_ns

* Flush perfetto at end of hip_activity_callback

- fixes unterminated regions

* GitHub Actions and run-ci script updates

- improve reliability

* Set OMNITRACE_TMPDIR in testing

- files in /tmp get occasionally deleted during CI

Co-authored-by: Gergely Meszaros <gergely@streamhpc.com>

[ROCm/rocprofiler-systems commit: 589a729702]
This commit is contained in:
Jonathan R. Madsen
2022-11-16 15:57:27 -06:00
committad av GitHub
förälder b7e504e938
incheckning a8cec1ea17
13 ändrade filer med 237 tillägg och 93 borttagningar
@@ -23,6 +23,7 @@ env:
OMNITRACE_VERBOSE: 1
OMNITRACE_CI: ON
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1
OMNITRACE_TMPDIR: "%env{PWD}%/testing-tmp"
jobs:
ubuntu-bionic:
@@ -37,7 +38,7 @@ jobs:
steps:
- name: Patch Git
timeout-minutes: 10
timeout-minutes: 25
run: |
apt-get update
apt-get install -y software-properties-common
@@ -51,11 +52,11 @@ jobs:
submodules: recursive
- name: Install Packages
timeout-minutes: 10
timeout-minutes: 25
uses: nick-fields/retry@v2
with:
retry_wait_seconds: 30
timeout_minutes: 10
timeout_minutes: 25
max_attempts: 5
command: |
apt-get update &&