Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the project’s Ubuntu 22.04 development container to include ROCm profiling support (rocprofv3) and an ATT trace decoder library so profiling/trace workflows can run inside the container.
Changes:
- Install
rocprofiler-sdkvia apt in the Docker image. - Download and place
librocprof-trace-decoder.sointo/opt/rocm/lib. - Minor Dockerfile formatting change (extra blank line).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
|
|
There was a problem hiding this comment.
There’s an extra blank line added here that doesn’t appear to separate logical sections. Consider removing it to keep the Dockerfile formatting consistent.
| RUN ldconfig | ||
|
|
||
| # ATT library | ||
| RUN sudo wget -O /opt/rocm/lib/librocprof-trace-decoder.so https://github.com/ROCm/rocprof-trace-decoder/raw/refs/heads/amd-mainline/releases/linux_glibc_2_28_x86_64/librocprof-trace-decoder.so |
There was a problem hiding this comment.
sudo is used in this RUN step, but the Dockerfile never installs sudo and the build runs as root by default (no USER set). This will fail with sudo: not found; drop sudo (or explicitly install it / switch users if that’s intended).
| RUN sudo wget -O /opt/rocm/lib/librocprof-trace-decoder.so https://github.com/ROCm/rocprof-trace-decoder/raw/refs/heads/amd-mainline/releases/linux_glibc_2_28_x86_64/librocprof-trace-decoder.so | |
| RUN wget -O /opt/rocm/lib/librocprof-trace-decoder.so https://github.com/ROCm/rocprof-trace-decoder/raw/refs/heads/amd-mainline/releases/linux_glibc_2_28_x86_64/librocprof-trace-decoder.so |
| RUN ldconfig | ||
|
|
||
| # ATT library | ||
| RUN sudo wget -O /opt/rocm/lib/librocprof-trace-decoder.so https://github.com/ROCm/rocprof-trace-decoder/raw/refs/heads/amd-mainline/releases/linux_glibc_2_28_x86_64/librocprof-trace-decoder.so |
There was a problem hiding this comment.
This downloads a shared library from a moving branch URL (raw/refs/heads/...). That makes builds non-reproducible and increases supply-chain risk. Prefer pinning to an immutable release asset or commit SHA, and verify integrity (e.g., checksum/signature) as part of the build.
| RUN ldconfig | ||
|
|
||
| # ATT library | ||
| RUN sudo wget -O /opt/rocm/lib/librocprof-trace-decoder.so https://github.com/ROCm/rocprof-trace-decoder/raw/refs/heads/amd-mainline/releases/linux_glibc_2_28_x86_64/librocprof-trace-decoder.so |
There was a problem hiding this comment.
ldconfig is run before this library is added to /opt/rocm/lib. Since /opt/rocm/lib is intended to be resolved via the dynamic loader cache, add an ldconfig after downloading the .so (or otherwise ensure the runtime can locate it) to avoid runtime/linker failures.
| RUN sudo wget -O /opt/rocm/lib/librocprof-trace-decoder.so https://github.com/ROCm/rocprof-trace-decoder/raw/refs/heads/amd-mainline/releases/linux_glibc_2_28_x86_64/librocprof-trace-decoder.so | |
| RUN sudo wget -O /opt/rocm/lib/librocprof-trace-decoder.so https://github.com/ROCm/rocprof-trace-decoder/raw/refs/heads/amd-mainline/releases/linux_glibc_2_28_x86_64/librocprof-trace-decoder.so && \ | |
| ldconfig |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4797 +/- ##
========================================
Coverage 92.49% 92.49%
========================================
Files 583 583
Lines 29561 29562 +1
========================================
+ Hits 27342 27343 +1
Misses 2219 2219 🚀 New features to boost your workflow:
|
Regressions detected 🔴 |
|
Motivation
Technical Details
Changelog Category
Add a
CHANGELOG.mdentry for any option other thanNot Applicable