Skip to content

Commit c83cdda

Browse files
committed
NO-JIRA: remove ROCm OpenCL SDK and configure ROCm shared libraries according to Documentation in TensorFlow Dockerfile
``` Error: Problem: package rocm-opencl-sdk-6.4.3.60403-128.el9.x86_64 from ROCm requires rocm-opencl-devel = 2.0.0.60403-128.el9, but none of the providers can be installed - package rocm-opencl-devel-2.0.0.60403-128.el9.x86_64 from ROCm requires rocm-opencl, but none of the providers can be installed - conflicting requests - nothing provides opencl-filesystem needed by rocm-opencl-5.4.4-1.el9.x86_64 from epel - nothing provides ocl-icd(x86-64) needed by rocm-opencl-5.4.4-1.el9.x86_64 from epel - nothing provides ocl-icd needed by rocm-opencl-2.0.0.60403-128.el9.x86_64 from ROCm ```
1 parent 70309d2 commit c83cdda

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jupyter/rocm/tensorflow/ubi9-python-3.12/Dockerfile.rocm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,16 @@ RUN echo "[ROCm]" > /etc/yum.repos.d/rocm.repo && \
7373
echo "gpgcheck=0" >> /etc/yum.repos.d/amdgpu.repo && \
7474
dnf install -y 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm' && \
7575
dnf clean all && dnf makecache && \
76-
dnf install -y rocm-developer-tools rocm-ml-sdk rocm-opencl-sdk rocm-openmp-sdk rocm-utils && \
76+
dnf install -y rocm-developer-tools rocm-ml-sdk rocm-openmp-sdk rocm-utils && \
7777
dnf clean all && rm -rf /var/cache/dnf
7878

79+
# https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/post-install.html#configure-rocm-shared-objects
80+
RUN tee --append /etc/ld.so.conf.d/rocm.conf <<EOF
81+
/opt/rocm/lib
82+
/opt/rocm/lib64
83+
EOF
84+
RUN ldconfig
85+
7986
# Restore notebook user workspace
8087
USER 1001
8188
WORKDIR /opt/app-root/src

0 commit comments

Comments
 (0)