FROM rocm/rocm-terminal:5.0.1 LABEL maintainer="CuPy Team" USER root RUN curl -qL https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - RUN apt-get update -y && \ apt-get install -y --no-install-recommends \ hipblas hipsparse rocsparse rocrand rocthrust rocsolver rocfft hipfft hipcub rocprim rccl && \ rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* RUN apt-get update -y && \ apt-get install -y --no-install-recommends python3.8 && \ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2 && \ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1 RUN python3 -m pip install --no-cache-dir -U install setuptools pip RUN python3 -m pip install --no-cache-dir "cupy-rocm-5-0[all]==12.3.0" USER rocm-user ENV LD_LIBRARY_PATH=/opt/rocm/lib RUN python3 -c "import cupy; cupy.show_config()"