Skip to content

Commit

Permalink
add libdrm-amdgpu-dev for focal image with empty hipDeviceGetName()
Browse files Browse the repository at this point in the history
  • Loading branch information
i-chaochen committed Feb 6, 2024
1 parent 3e2eb98 commit 43df6bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow/tools/ci_build/Dockerfile.rocm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN bin/bash -c 'if [[ $ROCM_DEB_REPO == https://repo.radeon.com/rocm/* ]] ; th
else \
echo "deb [arch=amd64 trusted=yes] $ROCM_DEB_REPO $ROCM_BUILD_NAME $ROCM_BUILD_NUM" > /etc/apt/sources.list.d/rocm.list ; \
fi'
RUN echo "deb [arch=amd64] https://repo.radeon.com/amdgpu/6.0/ubuntu focal $ROCM_BUILD_NUM" > /etc/apt/sources.list.d/amdgpu.list

# Install misc pkgs
RUN apt-get update --allow-insecure-repositories && DEBIAN_FRONTEND=noninteractive apt-get install -y \
Expand Down Expand Up @@ -78,7 +79,7 @@ RUN MIOPENKERNELS=$( \
) && \
apt-get update --allow-insecure-repositories && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \
rocm-dev rocm-libs ${MIOPENKERNELS} && \
libdrm-amdgpu-dev rocm-dev rocm-libs ${MIOPENKERNELS} && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# All required ROCM packages
libdrm-amdgpu-dev
rocm-libs
rocm-dev
rocm-ml-sdk
Expand Down
1 change: 1 addition & 0 deletions tensorflow/tools/tf_sig_build_dockerfiles/setup.rocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ if [[ $ROCM_DEB_REPO == https://repo.radeon.com/rocm/* ]] ; then \
else
bash "/${CUSTOM_INSTALL}"
fi
echo "deb [arch=amd64] https://repo.radeon.com/amdgpu/6.0/ubuntu focal $ROCM_BUILD_NUM" > /etc/apt/sources.list.d/amdgpu.list

GPU_DEVICE_TARGETS=${GPU_DEVICE_TARGETS:-"gfx900 gfx906 gfx908 gfx90a gfx940 gfx941 gfx942 gfx1030 gfx1100"}

Expand Down

0 comments on commit 43df6bb

Please sign in to comment.