@@ -20,30 +20,33 @@ RUN if ! zypper repos -E | grep devel_languages_perl; then \
2020 zypper clean --all && \
2121 cat rocm_so.conf >> /etc/ld.so.conf.d/rocm.conf && \
2222 rm rocm_so.conf && \
23- ldconfig
23+ ldconfig
2424
2525ENV PATH="/opt/rocm/bin:${PATH}" \
2626 LD_LIBRARY_PATH="/opt/rocm/lib:${LD_LIBRARY_PATH}"
2727
28- RUN zypper --non-interactive install wget tar gzip gcc gcc-fortran file gcc-c++ make && zypper clean --all && \
28+ COPY mpich-4.1.2-rocm-6.4-hip-pointer-attr.patch /tmp/mpich-4.1.2-rocm-6.4-hip-pointer-attr.patch
29+
30+ RUN zypper --non-interactive install wget tar gzip gcc gcc-fortran file gcc-c++ make patch && zypper clean --all && \
2931 if [ ! -z "$(gcc --version | grep -Eo -m 1 [0-9][0-9]+\. [0-9]+\. [0-9]+ | grep -m 1 [0-9])" ]; then \
3032 export FFLAGS=-fallow-argument-mismatch; \
3133 fi && \
32- wget --progress=bar:force https://www.mpich.org/static/downloads/3.4.3/mpich-3.4.3.tar.gz && \
33- tar xzf mpich-3.4.3.tar.gz && \
34- cd mpich-3.4.3 && \
35- ./configure --with-device=ch4:ofi --prefix=/opt/mpich/3.4.3 --with-hip=/opt/rocm/hip && \
34+ wget --progress=bar:force https://www.mpich.org/static/downloads/4.1.2/mpich-4.1.2.tar.gz && \
35+ tar xzf mpich-4.1.2.tar.gz && \
36+ cd mpich-4.1.2 && \
37+ patch -p1 < /tmp/mpich-4.1.2-rocm-6.4-hip-pointer-attr.patch && \
38+ ./configure --with-device=ch4:ofi --prefix=/opt/mpich/4.1.2 && \
3639 make install -j7 && \
3740 cd / && \
38- rm -rf mpich-3.4.3 / mpich-3.4.3 .tar.gz
39-
40- ENV MPICH_VERSION="3.4.3 " \
41- MPICH_URL="https://www.mpich.org/static/downloads/3.4.3 /mpich-3.4.3 .tar.gz" \
42- MPICH_DIR="/opt/mpich/3.4.3 " \
43- PATH="/opt/mpich/3.4.3 /bin:$PATH" \
44- LIBRARY_PATH="/opt/mpich/3.4.3 /lib:$LIBRARY_PATH" \
45- LD_LIBRARY_PATH="/opt/mpich/3.4.3 /lib:$LD_LIBRARY_PATH" \
46- MANPATH="/opt/mpich/3.4.3 /share/man:$MANPATH"
41+ rm -rf mpich-4.1.2 / mpich-4.1.2 .tar.gz
42+
43+ ENV MPICH_VERSION="4.1.2 " \
44+ MPICH_URL="https://www.mpich.org/static/downloads/4.1.2 /mpich-4.1.2 .tar.gz" \
45+ MPICH_DIR="/opt/mpich/4.1.2 " \
46+ PATH="/opt/mpich/4.1.2 /bin:$PATH" \
47+ LIBRARY_PATH="/opt/mpich/4.1.2 /lib:$LIBRARY_PATH" \
48+ LD_LIBRARY_PATH="/opt/mpich/4.1.2 /lib:$LD_LIBRARY_PATH" \
49+ MANPATH="/opt/mpich/4.1.2 /share/man:$MANPATH"
4750
4851# Install CMake
4952RUN zypper --non-interactive install cmake && zypper clean --all
0 commit comments