From 8f74a1d1647e945e7f297eb2e7a14ed3390529ec Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 14 Oct 2024 16:54:32 +0800 Subject: mpich: upgrade 4.2.2 -> 4.2.3 Changelog: =========== - Update embedded libfabric to fix a build issue on FreeBSD - Fix HIP support for use with AMD GPUs - Fix potential invalid context issue in CUDA memory hooks - Fix GPU fallback path in ch4/ofi for Intel GPU buffers - Fix IPC handle destruction with Level Zero API (Intel GPU) - Fix potential crash in MPI_ISENDRECV with derived datatypes - Fix bug in persistent MPI_GATHER that incorrectly cached buffer contents at init time - Fix memory allocation bug in ROMIO GPFS driver - Fix missing error names in ch4/ofi netmod - Fix potential hang in multi-VCI active message RMA - Fix bug in ch3 large count support with derived datatypes - Fix manpage generation to provide aliases for large-count versions - Fix potential crash in Hydra with long PMI command messages - Fix bug in exit status capture in Hydra when there are multiple processes with non-zero exit - Fix implementation of C/Fortran status conversion functions - Fix implementation of MPI_Type_create_f90_xxx functions Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/mpich/mpich_4.2.2.bb | 67 --------------------------- meta-oe/recipes-devtools/mpich/mpich_4.2.3.bb | 67 +++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 67 deletions(-) delete mode 100644 meta-oe/recipes-devtools/mpich/mpich_4.2.2.bb create mode 100644 meta-oe/recipes-devtools/mpich/mpich_4.2.3.bb diff --git a/meta-oe/recipes-devtools/mpich/mpich_4.2.2.bb b/meta-oe/recipes-devtools/mpich/mpich_4.2.2.bb deleted file mode 100644 index f9ff07740..000000000 --- a/meta-oe/recipes-devtools/mpich/mpich_4.2.2.bb +++ /dev/null @@ -1,67 +0,0 @@ -SUMMARY = "Message Passing Interface (MPI) implementation" -HOMEPAGE = "http://www.mpich.org/" -SECTION = "devel" - -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=7a88f0d96d0d7396a7c66bf353235b62" - -SRC_URI = "http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz" -SRC_URI[sha256sum] = "883f5bb3aeabf627cb8492ca02a03b191d09836bbe0f599d8508351179781d41" - -RDEPENDS:${PN} += "bash perl libxml2" - -EXTRA_OECONF = "--enable-debuginfo \ - --enable-fast \ - --enable-shared \ - --with-pm=gforker \ - BASH_SHELL='${USRBINPATH}/env bash' \ - PERL='${USRBINPATH}/env perl' \ - --with-device=ch3:nemesis \ -" - -PACKAGECONFIG ??= "" - -PACKAGECONFIG[cxx] = "--enable-cxx,--disable-cxx" -PACKAGECONFIG[fortran] = "--with-cross=${WORKDIR}/cross_values.txt --enable-fortran,--disable-f77 --disable-fortran,libgfortran" - -# libmpi.so needs symbols like __multf3 and somehow it does not respect --rtlib option passed by clang -LDFLAGS:append:x86-64 = " -lgcc" -LDFLAGS:append:x86 = " -lgcc" - -inherit autotools gettext pkgconfig qemu - -DEPENDS += "qemu-native" - -do_configure() { - if [ "${@bb.utils.contains('PACKAGECONFIG', 'fortran', '1', '', d)}" = "1" ]; then - qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" - cat > ${WORKDIR}/qemuwrapper << EOF -#!/bin/sh -$qemu_binary "\$@" -EOF - chmod +x ${WORKDIR}/qemuwrapper - - sed -i 's:my \(.*\) ./t`;:my \1 ${WORKDIR}/qemuwrapper ${WORKDIR}/t`;:' ${S}/maint/gen_cross.pl - - cd ${WORKDIR} - perl ${S}/maint/gen_cross.pl - - sed -i 's:\(CROSS_F90_INTEGER_MODEL_MAP=.*\) }"$:\1 }, ":' ${WORKDIR}/cross_values.txt - fi - - cd ${S} - ./autogen.sh - - cd ${B} - oe_runconf - sed -i -e 's,${WORKDIR},,g' ${B}/src/include/mpichinfo.h -} - -do_install:append() { - sed -i 's,${S}/,,g' ${D}/${libdir}/libmpi.la - sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}${bindir}/mpicxx - sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}${bindir}/mpicc - sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}/${libdir}/pkgconfig/mpich.pc - sed -i 's,${RECIPE_SYSROOT},/,g' ${D}${bindir}/mpicc - sed -i 's,${RECIPE_SYSROOT},/,g' ${D}${bindir}/mpicxx -} diff --git a/meta-oe/recipes-devtools/mpich/mpich_4.2.3.bb b/meta-oe/recipes-devtools/mpich/mpich_4.2.3.bb new file mode 100644 index 000000000..941dbf68a --- /dev/null +++ b/meta-oe/recipes-devtools/mpich/mpich_4.2.3.bb @@ -0,0 +1,67 @@ +SUMMARY = "Message Passing Interface (MPI) implementation" +HOMEPAGE = "http://www.mpich.org/" +SECTION = "devel" + +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=7a88f0d96d0d7396a7c66bf353235b62" + +SRC_URI = "http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz" +SRC_URI[sha256sum] = "7a019180c51d1738ad9c5d8d452314de65e828ee240bcb2d1f80de9a65be88a8" + +RDEPENDS:${PN} += "bash perl libxml2" + +EXTRA_OECONF = "--enable-debuginfo \ + --enable-fast \ + --enable-shared \ + --with-pm=gforker \ + BASH_SHELL='${USRBINPATH}/env bash' \ + PERL='${USRBINPATH}/env perl' \ + --with-device=ch3:nemesis \ +" + +PACKAGECONFIG ??= "" + +PACKAGECONFIG[cxx] = "--enable-cxx,--disable-cxx" +PACKAGECONFIG[fortran] = "--with-cross=${WORKDIR}/cross_values.txt --enable-fortran,--disable-f77 --disable-fortran,libgfortran" + +# libmpi.so needs symbols like __multf3 and somehow it does not respect --rtlib option passed by clang +LDFLAGS:append:x86-64 = " -lgcc" +LDFLAGS:append:x86 = " -lgcc" + +inherit autotools gettext pkgconfig qemu + +DEPENDS += "qemu-native" + +do_configure() { + if [ "${@bb.utils.contains('PACKAGECONFIG', 'fortran', '1', '', d)}" = "1" ]; then + qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}" + cat > ${WORKDIR}/qemuwrapper << EOF +#!/bin/sh +$qemu_binary "\$@" +EOF + chmod +x ${WORKDIR}/qemuwrapper + + sed -i 's:my \(.*\) ./t`;:my \1 ${WORKDIR}/qemuwrapper ${WORKDIR}/t`;:' ${S}/maint/gen_cross.pl + + cd ${WORKDIR} + perl ${S}/maint/gen_cross.pl + + sed -i 's:\(CROSS_F90_INTEGER_MODEL_MAP=.*\) }"$:\1 }, ":' ${WORKDIR}/cross_values.txt + fi + + cd ${S} + ./autogen.sh + + cd ${B} + oe_runconf + sed -i -e 's,${WORKDIR},,g' ${B}/src/include/mpichinfo.h +} + +do_install:append() { + sed -i 's,${S}/,,g' ${D}/${libdir}/libmpi.la + sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}${bindir}/mpicxx + sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}${bindir}/mpicc + sed -i 's,${DEBUG_PREFIX_MAP},,g' ${D}/${libdir}/pkgconfig/mpich.pc + sed -i 's,${RECIPE_SYSROOT},/,g' ${D}${bindir}/mpicc + sed -i 's,${RECIPE_SYSROOT},/,g' ${D}${bindir}/mpicxx +} -- cgit v1.2.3-54-g00ecf