Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/scan_tools_configs/.trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
# This file sits beside the configured trivy.yml, so the scan uses it.
# A .trivyignore at the repository root applies only when this file is
# absent; the two are never merged.

# The ROCm images run as root so the container can open the host GPU devices
# (/dev/kfd, /dev/dri) with the standard docker run flags.
AVD-DS-0002 exp:2027-05-01
24 changes: 4 additions & 20 deletions docker/rocm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
# library and install it in editable mode, so the build context must be the
# repo root. Build locally (from the repo root) with:
# docker build --network=host -f docker/rocm/Dockerfile --target warp_gfx942 -t <tag> .
#
# Both targets run as the unprivileged `warp` user. GPU access needs the host's
# GPU device groups, e.g.:
# docker run --device=/dev/kfd --device=/dev/dri \
# --group-add video --group-add render <tag>

ARG ROCM_VERSION=7.2
ARG UBUNTU_VERSION=24.04
Expand Down Expand Up @@ -47,17 +42,12 @@ RUN pip install --break-system-packages \

ARG HIP_ARCH=gfx942

RUN (getent group render || groupadd --system render) \
&& useradd --create-home --shell /bin/bash --groups video,render warp

COPY --chown=warp:warp . /workspace/warp
COPY . /workspace/warp
WORKDIR /workspace/warp

RUN ROCM_PATH=/opt/rocm python build_lib.py --hip-arch=${HIP_ARCH} --hipcc-options="-Xarch_device -fno-inline" && \
pip install -e . --break-system-packages && \
find /workspace/warp ! -user warp -exec chown warp:warp {} +
pip install -e . --break-system-packages

USER warp


# ROCm 10.1.0 / gfx950 image for the Mujoco Warp workload.
Expand Down Expand Up @@ -121,14 +111,8 @@ RUN ln -sf /usr/bin/python3 /usr/local/bin/python

ARG HIP_ARCH=gfx950

RUN (getent group render || groupadd --system render) \
&& useradd --create-home --shell /bin/bash --groups video,render warp

COPY --chown=warp:warp . /workspace/warp
COPY . /workspace/warp
WORKDIR /workspace/warp

RUN ROCM_PATH=/opt/rocm python build_lib.py --hip-arch=${HIP_ARCH} --hipcc-options="-Xarch_device -fno-inline" && \
pip install -e . --break-system-packages && \
find /workspace/warp ! -user warp -exec chown warp:warp {} +

USER warp
pip install -e . --break-system-packages