summaryrefslogtreecommitdiff
path: root/sys-cluster/openmpi
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/openmpi')
-rw-r--r--sys-cluster/openmpi/Manifest11
-rw-r--r--sys-cluster/openmpi/files/openmpi-4.1.6-incompatible-pointers.patch181
-rw-r--r--sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild188
-rw-r--r--sys-cluster/openmpi/openmpi-4.1.5.ebuild166
-rw-r--r--sys-cluster/openmpi/openmpi-4.1.6.ebuild18
-rw-r--r--sys-cluster/openmpi/openmpi-5.0.3.ebuild141
-rw-r--r--sys-cluster/openmpi/openmpi-5.0.5.ebuild142
7 files changed, 486 insertions, 361 deletions
diff --git a/sys-cluster/openmpi/Manifest b/sys-cluster/openmpi/Manifest
index 14c587367a7e..9bee98e4b3f7 100644
--- a/sys-cluster/openmpi/Manifest
+++ b/sys-cluster/openmpi/Manifest
@@ -1,7 +1,8 @@
-DIST openmpi-4.1.4.tar.bz2 10042839 BLAKE2B b020e3530ae5dde7b144e7c33b1a3f26f622526a4b48a97a0956fc6f49bbf9dfd5be9ebeeaf3bdc5168a307507408ba5dd8e2a537148821e1d476678177dc5d6 SHA512 c70a92c9b16b8c76a871183f9b180d60861186e64140da897d206d53bc06213f31ea93b31734645f580f4bf28dda5605d85dbce2417e4596955384d961bed653
-DIST openmpi-4.1.5.tar.bz2 10045426 BLAKE2B 135a8373ed6173b7a94def18e3b964c6b6050c909382e0dbb1898a6d261ae428931358121ef6d325d303f4f510017a94970f7c66b280a5fc460365821f36dece SHA512 7a2188684ed7542fe42e1717ae72cb859b4f3d6f722c9d3ba04bfed6c2178b3e7da3a536629d312c23571fed4d9b2ca5e20e85898ae5144e9332bd898e6e1cc6
+AUX openmpi-4.1.6-incompatible-pointers.patch 8095 BLAKE2B c095a4c0c3fba74a8c1f111b5983b77811ce98d5b36dc74e1f1f8de97df4037ef62716acacf35fe1c832348a6dbedd15d0069a6a64e713caf0ddafa36bc491d6 SHA512 8e8d3027262605189b4a54d66ca8293651aecaf88432e038c178b66ee2f8f0e6d4b57410ad2b3e9cf23af2002ba83e972c799de8f3b0e3748b9c5badc86ab5b8
DIST openmpi-4.1.6.tar.bz2 10017002 BLAKE2B 4f119e1ed9b8787f0f860295ab1721fe2fd5300b8e182230a9eba3a864680b02bbd30618cc6d798a693a121626fc0ad5f447144d9ba91becb734f1a530d7a23a SHA512 0ef3240f9c436fb19b67e836cac376eafeb7825d12de3387dad04329dee9f182799d17d785ea23eba763810f479015bb5230593c28950b616b2f0aa1c0a81e71
-EBUILD openmpi-4.1.4-r1.ebuild 5763 BLAKE2B 7e227f94d01dc4fa76b1b082268f875618d3f7c20b90b37ee19bb52c5452e3767f68be3d90becdee033dea8ecb09f15996bb75ec3825ae9ac35958beb01512ae SHA512 720732ec40127fd1dacd080349443041c46066e8d88feb95d1059f83f7757b55598057a0fae15cf7dac8f83fa4c0c88be53e1e93544d1dd1b6b39045fa5a2357
-EBUILD openmpi-4.1.5.ebuild 5068 BLAKE2B faf4e7fad6741faf90d8fbd98df363a2c25d804819998d1cd6c8743216c54b376bb28cef66a0f2a2d4d24f9b4207cc7ceaba4c9d73fba4b22357b472dbdbf97e SHA512 96b5874bdfc7bb267f04bb29c1b20b819504efc70e3d207c3a53a160f191c40de86ea655aa6dcf2036259ab4917c4366b1c9944089b0ae8b25533f91a41cb6f5
-EBUILD openmpi-4.1.6.ebuild 5222 BLAKE2B dee61adb903fd1f752edf4c97ff5cc5cba5d15d9ff1415f1a9ded8200175d80a35276c6eec461dc2987294127ea42e4f6ef89b76e2c1a0cdb5b966ada77bd0a8 SHA512 c9a36e15a3d3ef00a2753ae1f0cb27894aa709dfebb1cde3d06a34053982aeb362c8057438052e9d76392f12cbee9c9f30182c5fc709f1903fb0f31a33511d48
+DIST openmpi-5.0.3.tar.bz2 29761888 BLAKE2B a084813f3dada12bbe77dcc6ef0ec0454980779f97ccb46f37f3d7df3bf7299e6484ec3427c2ca784e70876f62dc061a13cb7f08348e3d649e27f2bece9a09ac SHA512 60e8f6dcd6b1531ce8164e02f40be9a364ab484166a2a7b13bdff115a508f0596e97ad0a4204a47799ae608ba484a7ba9503042bddffe675f09ce22071b0b4a9
+DIST openmpi-5.0.5.tar.bz2 30000495 BLAKE2B 740e5dbc7e54b8f4eac4fa2c40fb5a0ccfba201dff15ccc84899f28dfad0147078ef6c2b0585615c93fc6edb70b665b3f7a9adea5e5e53a7563ae4c7a6ccbada SHA512 d0a137ebdeb578f0457113c6dd0f84d407c88d8f8844e6796114c8026d7391ebfb29d105f16289338eb3ac653ae9d3c0bdc4aa651402444b2ca91c1c447dc409
+EBUILD openmpi-4.1.6.ebuild 5658 BLAKE2B d64baad95956f2ec48c72905706368e9950fe329ac6b15867723039cb035d9dad3199e3887072d669602b872c29e0e04abd2216f81656ea69de5c40e2442fa93 SHA512 b5c8de17bc7c4221c0f54272e0d22aed2d92f9ac0815df1982da6508cde46633b409b8d151aa9b4b35e9cbb540131b355ff7a228cf077889670ba325549fad74
+EBUILD openmpi-5.0.3.ebuild 3713 BLAKE2B 1fd6f4117e83a4469b1912469106960c0e9ed77a9050d716ebdfed67786c5d91428bdac46e2f2783ada2cfcab4f32e3918e87fe808f05b875844b1c44a8eab5c SHA512 6ec4da5adb735308e8a8f91ec2cad86c90a8aa600892cb5f8674e558fb5229554a9173ad9bf2ea241c2658254d67cc13b79dcfcc3f92f8038a30c5327e6cc8b4
+EBUILD openmpi-5.0.5.ebuild 3752 BLAKE2B cd64c69fa2af87e8fe95ffe00171446ede195a590cbbe6211dc522fc2ddc9be4250e43009f09d2f91b2edc1659f5c9ec2d876df2200bfdd264267e60f2568bd8 SHA512 59d13b631f6c5cda5648cc0e53c834827643accd767001e1aded8b01708e2d76f1ab484c9ee66040cebbd1d2471215a14c1bf01c10c1688297bc408f0500f808
MISC metadata.xml 619 BLAKE2B e1073cdab4b3b0013354a95a53354f1040edbde8cb0f864a28ca1a9e9e7f6974e2db4a9a885c8616cfba41b7b472af4168d92ad3b5cd9e051598db1a4d4d2889 SHA512 b76a5bd4fdbdc47c21b06681a8365f5d0baf7b121a88146b87a4a609d01b9008aeae070130c86be89586bfeff73b325bda4b4fa83dc150f3c5865e5d0f422995
diff --git a/sys-cluster/openmpi/files/openmpi-4.1.6-incompatible-pointers.patch b/sys-cluster/openmpi/files/openmpi-4.1.6-incompatible-pointers.patch
new file mode 100644
index 000000000000..9f9ae4008ad6
--- /dev/null
+++ b/sys-cluster/openmpi/files/openmpi-4.1.6-incompatible-pointers.patch
@@ -0,0 +1,181 @@
+--- a/ompi/mca/io/romio321/romio/adio/common/ad_coll_exch_new.c
++++ b/ompi/mca/io/romio321/romio/adio/common/ad_coll_exch_new.c
+@@ -154,7 +154,7 @@ void ADIOI_Exch_file_views(int myrank, int nprocs, int file_ptr_type,
+ }
+
+ MPI_Type_get_extent(fd->filetype, &lb, &filetype_extent);
+- MPI_Type_size_x(fd->filetype, &filetype_sz);
++ MPI_Type_size_x(fd->filetype, (MPI_Count *)&filetype_sz);
+ if (filetype_extent == filetype_sz) {
+ flat_file_p = ADIOI_Add_contig_flattened(fd->filetype);
+ flat_file_p->blocklens[0] = memtype_sz*count;
+--- a/ompi/mca/io/romio321/romio/adio/common/ad_read_coll.c
++++ b/ompi/mca/io/romio321/romio/adio/common/ad_read_coll.c
+@@ -851,7 +851,7 @@ static void ADIOI_R_Exchange_data(ADIO_File fd, void *buf, ADIOI_Flatlist_node
+ others_req[i].lens[k] = partial_send[i];
+ }
+ ADIOI_Type_create_hindexed_x(count[i],
+- &(others_req[i].lens[start_pos[i]]),
++ (const MPI_Count *)&(others_req[i].lens[start_pos[i]]),
+ &(others_req[i].mem_ptrs[start_pos[i]]),
+ MPI_BYTE, &send_type);
+ /* absolute displacement; use MPI_BOTTOM in send */
+--- a/ompi/mca/io/romio321/romio/adio/common/ad_write_coll.c
++++ b/ompi/mca/io/romio321/romio/adio/common/ad_write_coll.c
+@@ -610,7 +610,7 @@ static void ADIOI_W_Exchange_data(ADIO_File fd, void *buf, char *write_buf,
+ others_req[i].lens[k] = partial_recv[i];
+ }
+ ADIOI_Type_create_hindexed_x(count[i],
+- &(others_req[i].lens[start_pos[i]]),
++ (const MPI_Count *)&(others_req[i].lens[start_pos[i]]),
+ &(others_req[i].mem_ptrs[start_pos[i]]),
+ MPI_BYTE, recv_types+j);
+ /* absolute displacements; use MPI_BOTTOM in recv */
+--- a/ompi/mca/io/romio321/romio/mpi-io/get_bytoff.c
++++ b/ompi/mca/io/romio321/romio/mpi-io/get_bytoff.c
+@@ -63,7 +63,7 @@ int MPI_File_get_byte_offset(MPI_File fh, MPI_Offset offset, MPI_Offset *disp)
+ MPIO_CHECK_NOT_SEQUENTIAL_MODE(adio_fh, myname, error_code);
+ /* --END ERROR HANDLING-- */
+
+- ADIOI_Get_byte_offset(adio_fh, offset, disp);
++ ADIOI_Get_byte_offset(adio_fh, (ADIO_Offset)offset, (ADIO_Offset *)disp);
+
+ fn_exit:
+
+--- a/ompi/mca/io/romio321/romio/mpi-io/get_posn.c
++++ b/ompi/mca/io/romio321/romio/mpi-io/get_posn.c
+@@ -52,7 +52,7 @@ int MPI_File_get_position(MPI_File fh, MPI_Offset *offset)
+ MPIO_CHECK_NOT_SEQUENTIAL_MODE(adio_fh, myname, error_code);
+ /* --END ERROR HANDLING-- */
+
+- ADIOI_Get_position(adio_fh, offset);
++ ADIOI_Get_position(adio_fh, (ADIO_Offset *)offset);
+
+ fn_exit:
+ return MPI_SUCCESS;
+--- a/ompi/mca/io/romio321/romio/mpi-io/get_posn_sh.c
++++ b/ompi/mca/io/romio321/romio/mpi-io/get_posn_sh.c
+@@ -53,7 +53,8 @@ int MPI_File_get_position_shared(MPI_File fh, MPI_Offset *offset)
+
+ ADIOI_TEST_DEFERRED(adio_fh, myname, &error_code);
+
+- ADIO_Get_shared_fp(adio_fh, 0, offset, &error_code);
++
++ ADIO_Get_shared_fp(adio_fh, 0, (ADIO_Offset *)offset, &error_code);
+ /* --BEGIN ERROR HANDLING-- */
+ if (error_code != MPI_SUCCESS)
+ error_code = MPIO_Err_return_file(adio_fh, error_code);
+--- a/ompi/mca/io/romio321/romio/mpi-io/seek.c
++++ b/ompi/mca/io/romio321/romio/mpi-io/seek.c
+@@ -73,7 +73,7 @@ int MPI_File_seek(MPI_File fh, MPI_Offset offset, int whence)
+ break;
+ case MPI_SEEK_CUR:
+ /* find offset corr. to current location of file pointer */
+- ADIOI_Get_position(adio_fh, &curr_offset);
++ ADIOI_Get_position(adio_fh, (ADIO_Offset *)&curr_offset);
+ offset += curr_offset;
+
+ /* --BEGIN ERROR HANDLING-- */
+@@ -94,7 +94,7 @@ int MPI_File_seek(MPI_File fh, MPI_Offset offset, int whence)
+ ADIOI_TEST_DEFERRED(adio_fh, "MPI_File_seek", &error_code);
+
+ /* find offset corr. to end of file */
+- ADIOI_Get_eof_offset(adio_fh, &eof_offset);
++ ADIOI_Get_eof_offset(adio_fh, (ADIO_Offset *)&eof_offset);
+ offset += eof_offset;
+
+ /* --BEGIN ERROR HANDLING-- */
+--- a/ompi/mca/io/romio321/romio/mpi-io/seek_sh.c
++++ b/ompi/mca/io/romio321/romio/mpi-io/seek_sh.c
+@@ -101,7 +101,7 @@ int MPI_File_seek_shared(MPI_File fh, MPI_Offset offset, int whence)
+ break;
+ case MPI_SEEK_CUR:
+ /* get current location of shared file pointer */
+- ADIO_Get_shared_fp(adio_fh, 0, &curr_offset, &error_code);
++ ADIO_Get_shared_fp(adio_fh, 0, (ADIO_Offset *)&curr_offset, &error_code);
+ /* --BEGIN ERROR HANDLING-- */
+ if (error_code != MPI_SUCCESS)
+ {
+@@ -130,7 +130,7 @@ int MPI_File_seek_shared(MPI_File fh, MPI_Offset offset, int whence)
+ break;
+ case MPI_SEEK_END:
+ /* find offset corr. to end of file */
+- ADIOI_Get_eof_offset(adio_fh, &eof_offset);
++ ADIOI_Get_eof_offset(adio_fh, (ADIO_Offset *)&eof_offset);
+ offset += eof_offset;
+ /* --BEGIN ERROR HANDLING-- */
+ if (offset < 0)
+--- a/opal/mca/pmix/pmix3x/pmix/src/hwloc/hwloc.c
++++ b/opal/mca/pmix/pmix3x/pmix/src/hwloc/hwloc.c
+@@ -638,7 +638,7 @@ static int find_hole(pmix_hwloc_vm_hole_kind_t hkind,
+ switch (hkind) {
+ case VM_HOLE_BEGIN:
+ fclose(file);
+- return use_hole(0, begin, addrp, size);
++ return use_hole(0, begin, (unsigned long *)addrp, size);
+
+ case VM_HOLE_AFTER_HEAP:
+ if (prevmkind == VM_MAP_HEAP && mkind != VM_MAP_HEAP) {
+@@ -646,14 +646,14 @@ static int find_hole(pmix_hwloc_vm_hole_kind_t hkind,
+ * (there can be several of them consecutively).
+ */
+ fclose(file);
+- return use_hole(prevend, begin-prevend, addrp, size);
++ return use_hole(prevend, begin-prevend, (unsigned long *)addrp, size);
+ }
+ break;
+
+ case VM_HOLE_BEFORE_STACK:
+ if (mkind == VM_MAP_STACK) {
+ fclose(file);
+- return use_hole(prevend, begin-prevend, addrp, size);
++ return use_hole(prevend, begin-prevend, (unsigned long *)addrp, size);
+ }
+ break;
+
+@@ -705,7 +705,7 @@ static int find_hole(pmix_hwloc_vm_hole_kind_t hkind,
+ done:
+ fclose(file);
+ if (hkind == VM_HOLE_IN_LIBS || hkind == VM_HOLE_BIGGEST) {
+- return use_hole(biggestbegin, biggestsize, addrp, size);
++ return use_hole(biggestbegin, biggestsize, (unsigned long *)addrp, size);
+ }
+
+ return PMIX_ERROR;
+--- a/orte/mca/rtc/hwloc/rtc_hwloc.c
++++ b/orte/mca/rtc/hwloc/rtc_hwloc.c
+@@ -608,7 +608,7 @@ static int find_hole(orte_rtc_hwloc_vm_hole_kind_t hkind,
+ switch (hkind) {
+ case VM_HOLE_BEGIN:
+ fclose(file);
+- return use_hole(0, begin, addrp, size);
++ return use_hole(0, begin, (unsigned long *)addrp, size);
+
+ case VM_HOLE_AFTER_HEAP:
+ if (prevmkind == VM_MAP_HEAP && mkind != VM_MAP_HEAP) {
+@@ -616,14 +616,14 @@ static int find_hole(orte_rtc_hwloc_vm_hole_kind_t hkind,
+ * (there can be several of them consecutively).
+ */
+ fclose(file);
+- return use_hole(prevend, begin-prevend, addrp, size);
++ return use_hole(prevend, begin-prevend, (unsigned long *)addrp, size);
+ }
+ break;
+
+ case VM_HOLE_BEFORE_STACK:
+ if (mkind == VM_MAP_STACK) {
+ fclose(file);
+- return use_hole(prevend, begin-prevend, addrp, size);
++ return use_hole(prevend, begin-prevend, (unsigned long *)addrp, size);
+ }
+ break;
+
+@@ -678,7 +678,7 @@ static int find_hole(orte_rtc_hwloc_vm_hole_kind_t hkind,
+ done:
+ fclose(file);
+ if (hkind == VM_HOLE_IN_LIBS || hkind == VM_HOLE_BIGGEST) {
+- return use_hole(biggestbegin, biggestsize, addrp, size);
++ return use_hole(biggestbegin, biggestsize, (unsigned long *)addrp, size);
+ }
+
+ return ORTE_ERROR;
diff --git a/sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild b/sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild
deleted file mode 100644
index 31ae4c8e66fa..000000000000
--- a/sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild
+++ /dev/null
@@ -1,188 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-FORTRAN_NEEDED=fortran
-
-inherit cuda fortran-2 java-pkg-opt-2 multilib-minimal
-
-MY_P=${P/-mpi}
-S=${WORKDIR}/${MY_P}
-
-IUSE_OPENMPI_FABRICS="
- openmpi_fabrics_ofed
- openmpi_fabrics_knem"
-
-IUSE_OPENMPI_RM="
- openmpi_rm_pbs
- openmpi_rm_slurm"
-
-IUSE_OPENMPI_OFED_FEATURES="
- openmpi_ofed_features_control-hdr-padding
- openmpi_ofed_features_udcm
- openmpi_ofed_features_rdmacm
- openmpi_ofed_features_dynamic-sl"
-
-DESCRIPTION="A high-performance message passing library (MPI)"
-HOMEPAGE="https://www.open-mpi.org"
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~ppc ppc64 ~riscv sparc x86 ~amd64-linux"
-IUSE="cma cuda cxx fortran ipv6 java libompitrace peruse romio valgrind
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
-
-REQUIRED_USE="
- openmpi_rm_slurm? ( !openmpi_rm_pbs )
- openmpi_rm_pbs? ( !openmpi_rm_slurm )
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )"
-
-CDEPEND="
- !sys-cluster/mpich
- !sys-cluster/mpich2
- !sys-cluster/nullmpi
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads(+)]
- dev-libs/libltdl:0[${MULTILIB_USEDEP}]
- >=sys-apps/hwloc-2.0.2:=[${MULTILIB_USEDEP}]
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= )
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core )
- openmpi_fabrics_knem? ( sys-cluster/knem )
- openmpi_rm_pbs? ( sys-cluster/torque )
- openmpi_rm_slurm? ( sys-cluster/slurm )
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )"
-
-RDEPEND="${CDEPEND}
- java? ( >=virtual/jre-1.8:* )"
-
-DEPEND="${CDEPEND}
- java? ( >=virtual/jdk-1.8:* )
- valgrind? ( dev-debug/valgrind )"
-
-MULTILIB_WRAPPED_HEADERS=(
- /usr/include/mpi.h
- /usr/include/openmpi/ompi/mpi/java/mpiJava.h
- /usr/include/openmpi/mpiext/mpiext_cuda_c.h
-)
-
-pkg_setup() {
- fortran-2_pkg_setup
- java-pkg-opt-2_pkg_setup
-
- elog
- elog "OpenMPI has an overwhelming count of configuration options."
- elog "Don't forget the EXTRA_ECONF environment variable can let you"
- elog "specify configure options if you find them necessary."
- elog
-}
-
-src_prepare() {
- default
-
- # Avoid test which ends up looking at system mounts
- echo "int main() { return 0; }" > test/util/opal_path_nfs.c || die
-
- # Necessary for scalibility, see
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
- echo 'oob_tcp_listen_mode = listen_thread' \
- >> opal/etc/openmpi-mca-params.conf || die
-}
-
-multilib_src_configure() {
- if use java; then
- # We must always build with the right -source and -target
- # flags. Passing flags to javac isn't explicitly supported here
- # but we can cheat by overriding the configure test for javac.
- export ac_cv_path_JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
- fi
-
- local myconf=(
- # configure takes a looooong time, but upstream currently force
- # constriants on caching:
- # https://github.com/open-mpi/ompi/blob/9eec56222a5c98d13790c9ee74877f1562ac27e8/config/opal_config_subdir.m4#L118
- # so no --cache-dir for now.
- --enable-mpi-fortran=$(usex fortran all no)
- --enable-orterun-prefix-by-default
- --enable-pretty-print-stacktrace
-
- --sysconfdir="${EPREFIX}/etc/${PN}"
-
- --with-hwloc="${EPREFIX}/usr"
- --with-hwloc-libdir="${EPREFIX}/usr/$(get_libdir)"
- --with-libltdl="${EPREFIX}/usr"
- --with-libevent="${EPREFIX}/usr"
- --with-libevent-libdir="${EPREFIX}/usr/$(get_libdir)"
-
- # Re-enable for 5.0!
- # See https://github.com/open-mpi/ompi/issues/9697#issuecomment-1003746357
- # and https://bugs.gentoo.org/828123#c14
- --disable-heterogeneous
-
- $(use_enable cxx mpi-cxx)
- $(use_enable ipv6)
- $(use_enable libompitrace)
- $(use_enable peruse)
- $(use_enable romio io-romio)
-
- $(use_with cma)
-
- $(multilib_native_use_enable java mpi-java)
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding)
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm)
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm)
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl)
-
- $(multilib_native_use_with cuda cuda "${EPREFIX}"/opt/cuda)
- $(multilib_native_use_with valgrind)
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr)
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr)
- $(multilib_native_use_with openmpi_rm_pbs tm)
- $(multilib_native_use_with openmpi_rm_slurm slurm)
- )
-
- CONFIG_SHELL="${BROOT}"/bin/bash ECONF_SOURCE="${S}" econf "${myconf[@]}"
-}
-
-multilib_src_compile() {
- emake V=1
-}
-
-multilib_src_install() {
- default
-
- # fortran header cannot be wrapped (bug #540508), workaround part 1
- if multilib_is_native_abi && use fortran; then
- mkdir "${T}"/fortran || die
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die
- else
- # some fortran files get installed unconditionally
- rm \
- "${ED}"/usr/include/mpif* \
- "${ED}"/usr/bin/mpif* \
- || die
- fi
-}
-
-multilib_src_install_all() {
- # fortran header cannot be wrapped (bug #540508), workaround part 2
- if use fortran; then
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die
- fi
-
- # Remove la files, no static libs are installed and we have pkg-config
- find "${ED}" -name '*.la' -delete || die
-
- if use java; then
- local mpi_jar="${ED}"/usr/$(get_libdir)/mpi.jar
- java-pkg_dojar "${mpi_jar}"
- # We don't want to install the jar file twice
- # so let's clean after ourselves.
- rm "${mpi_jar}" || die
- fi
- einstalldocs
-}
diff --git a/sys-cluster/openmpi/openmpi-4.1.5.ebuild b/sys-cluster/openmpi/openmpi-4.1.5.ebuild
deleted file mode 100644
index ab2269364e29..000000000000
--- a/sys-cluster/openmpi/openmpi-4.1.5.ebuild
+++ /dev/null
@@ -1,166 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-FORTRAN_NEEDED=fortran
-inherit cuda fortran-2 multilib-minimal
-
-MY_P=${P/-mpi}
-
-IUSE_OPENMPI_FABRICS="
- openmpi_fabrics_ofed
- openmpi_fabrics_knem"
-
-IUSE_OPENMPI_RM="
- openmpi_rm_pbs
- openmpi_rm_slurm"
-
-IUSE_OPENMPI_OFED_FEATURES="
- openmpi_ofed_features_control-hdr-padding
- openmpi_ofed_features_udcm
- openmpi_ofed_features_rdmacm
- openmpi_ofed_features_dynamic-sl"
-
-DESCRIPTION="A high-performance message passing library (MPI)"
-HOMEPAGE="https://www.open-mpi.org"
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2"
-S="${WORKDIR}/${MY_P}"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
-IUSE="cma cuda cxx fortran ipv6 libompitrace peruse romio valgrind
- ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
-
-REQUIRED_USE="
- openmpi_rm_slurm? ( !openmpi_rm_pbs )
- openmpi_rm_pbs? ( !openmpi_rm_slurm )
- openmpi_ofed_features_control-hdr-padding? ( openmpi_fabrics_ofed )
- openmpi_ofed_features_udcm? ( openmpi_fabrics_ofed )
- openmpi_ofed_features_rdmacm? ( openmpi_fabrics_ofed )
- openmpi_ofed_features_dynamic-sl? ( openmpi_fabrics_ofed )"
-
-RDEPEND="
- !sys-cluster/mpich
- !sys-cluster/mpich2
- !sys-cluster/nullmpi
- >=dev-libs/libevent-2.0.22:=[${MULTILIB_USEDEP},threads(+)]
- dev-libs/libltdl:0[${MULTILIB_USEDEP}]
- >=sys-apps/hwloc-2.0.2:=[${MULTILIB_USEDEP}]
- >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
- cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= )
- openmpi_fabrics_ofed? ( sys-cluster/rdma-core )
- openmpi_fabrics_knem? ( sys-cluster/knem )
- openmpi_rm_pbs? ( sys-cluster/torque )
- openmpi_rm_slurm? ( sys-cluster/slurm )
- openmpi_ofed_features_rdmacm? ( sys-cluster/rdma-core )"
-DEPEND="${RDEPEND}
- valgrind? ( dev-debug/valgrind )"
-
-MULTILIB_WRAPPED_HEADERS=(
- /usr/include/mpi.h
- /usr/include/openmpi/mpiext/mpiext_cuda_c.h
-)
-
-pkg_setup() {
- fortran-2_pkg_setup
-
- elog
- elog "OpenMPI has an overwhelming count of configuration options."
- elog "Don't forget the EXTRA_ECONF environment variable can let you"
- elog "specify configure options if you find them necessary."
- elog
-}
-
-src_prepare() {
- default
-
- # Avoid test which ends up looking at system mounts
- echo "int main() { return 0; }" > test/util/opal_path_nfs.c || die
-
- # Necessary for scalibility, see
- # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
- echo 'oob_tcp_listen_mode = listen_thread' \
- >> opal/etc/openmpi-mca-params.conf || die
-}
-
-multilib_src_configure() {
- local myconf=(
- --disable-mpi-java
- # configure takes a looooong time, but upstream currently force
- # constriants on caching:
- # https://github.com/open-mpi/ompi/blob/9eec56222a5c98d13790c9ee74877f1562ac27e8/config/opal_config_subdir.m4#L118
- # so no --cache-dir for now.
- --enable-mpi-fortran=$(usex fortran all no)
- --enable-orterun-prefix-by-default
- --enable-pretty-print-stacktrace
-
- --sysconfdir="${EPREFIX}/etc/${PN}"
-
- --with-hwloc="${EPREFIX}/usr"
- --with-hwloc-libdir="${EPREFIX}/usr/$(get_libdir)"
- --with-libltdl="${EPREFIX}/usr"
- --with-libevent="${EPREFIX}/usr"
- --with-libevent-libdir="${EPREFIX}/usr/$(get_libdir)"
-
- # Re-enable for 5.0!
- # See https://github.com/open-mpi/ompi/issues/9697#issuecomment-1003746357
- # and https://bugs.gentoo.org/828123#c14
- --disable-heterogeneous
-
- $(use_enable cxx mpi-cxx)
- $(use_enable ipv6)
- $(use_enable libompitrace)
- $(use_enable peruse)
- $(use_enable romio io-romio)
-
- $(use_with cma)
-
- $(multilib_native_use_enable openmpi_ofed_features_control-hdr-padding openib-control-hdr-padding)
- $(multilib_native_use_enable openmpi_ofed_features_rdmacm openib-rdmacm)
- $(multilib_native_use_enable openmpi_ofed_features_udcm openib-udcm)
- $(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl)
-
- $(multilib_native_use_with cuda cuda "${EPREFIX}"/opt/cuda)
- $(multilib_native_use_with valgrind)
- $(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr)
- $(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr)
- $(multilib_native_use_with openmpi_rm_pbs tm)
- $(multilib_native_use_with openmpi_rm_slurm slurm)
- )
-
- CONFIG_SHELL="${BROOT}"/bin/bash ECONF_SOURCE="${S}" econf "${myconf[@]}"
-}
-
-multilib_src_compile() {
- emake V=1
-}
-
-multilib_src_install() {
- default
-
- # fortran header cannot be wrapped (bug #540508), workaround part 1
- if multilib_is_native_abi && use fortran; then
- mkdir "${T}"/fortran || die
- mv "${ED}"/usr/include/mpif* "${T}"/fortran || die
- else
- # some fortran files get installed unconditionally
- rm \
- "${ED}"/usr/include/mpif* \
- "${ED}"/usr/bin/mpif* \
- || die
- fi
-}
-
-multilib_src_install_all() {
- # fortran header cannot be wrapped (bug #540508), workaround part 2
- if use fortran; then
- mv "${T}"/fortran/mpif* "${ED}"/usr/include || die
- fi
-
- # Remove la files, no static libs are installed and we have pkg-config
- find "${ED}" -name '*.la' -delete || die
-
- einstalldocs
-}
diff --git a/sys-cluster/openmpi/openmpi-4.1.6.ebuild b/sys-cluster/openmpi/openmpi-4.1.6.ebuild
index cd171b1263f5..6011e81b155b 100644
--- a/sys-cluster/openmpi/openmpi-4.1.6.ebuild
+++ b/sys-cluster/openmpi/openmpi-4.1.6.ebuild
@@ -4,7 +4,7 @@
EAPI=8
FORTRAN_NEEDED=fortran
-inherit cuda fortran-2 multilib-minimal
+inherit cuda flag-o-matic fortran-2 libtool multilib-minimal
MY_P=${P/-mpi}
@@ -24,7 +24,7 @@ IUSE_OPENMPI_OFED_FEATURES="
DESCRIPTION="A high-performance message passing library (MPI)"
HOMEPAGE="https://www.open-mpi.org"
-SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2"
+SRC_URI="https://download.open-mpi.org/release/open-mpi/v$(ver_cut 1-2)/${P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
@@ -64,6 +64,10 @@ MULTILIB_WRAPPED_HEADERS=(
/usr/include/openmpi/mpiext/mpiext_cuda_c.h
)
+PATCHES=(
+ "${FILESDIR}/${PN}-4.1.6-incompatible-pointers.patch"
+)
+
pkg_setup() {
fortran-2_pkg_setup
@@ -76,6 +80,7 @@ pkg_setup() {
src_prepare() {
default
+ elibtoolize
# Avoid test which ends up looking at system mounts
echo "int main() { return 0; }" > test/util/opal_path_nfs.c || die
@@ -87,6 +92,15 @@ src_prepare() {
}
multilib_src_configure() {
+ # -Werror=lto-type-mismatch, -Werror=strict-aliasing
+ # The former even prevents successfully running ./configure, but both appear
+ # at `make` time as well.
+ # https://bugs.gentoo.org/913040
+ # https://github.com/open-mpi/ompi/issues/12674
+ # https://github.com/open-mpi/ompi/issues/12675
+ append-flags -fno-strict-aliasing
+ filter-lto
+
local myconf=(
--disable-mpi-java
# configure takes a looooong time, but upstream currently force
diff --git a/sys-cluster/openmpi/openmpi-5.0.3.ebuild b/sys-cluster/openmpi/openmpi-5.0.3.ebuild
new file mode 100644
index 000000000000..4c3c9e8b32aa
--- /dev/null
+++ b/sys-cluster/openmpi/openmpi-5.0.3.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_NEEDED=fortran
+inherit cuda flag-o-matic fortran-2 libtool
+
+MY_P=${P/-mpi}
+
+IUSE_OPENMPI_FABRICS="
+ openmpi_fabrics_ofed
+ openmpi_fabrics_knem"
+
+IUSE_OPENMPI_RM="
+ openmpi_rm_pbs
+ openmpi_rm_slurm"
+
+DESCRIPTION="A high-performance message passing library (MPI)"
+HOMEPAGE="https://www.open-mpi.org"
+SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 -arm -ppc -x86 ~amd64-linux"
+IUSE="cma cuda fortran ipv6 peruse romio valgrind
+ ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM}"
+
+REQUIRED_USE="
+ openmpi_rm_slurm? ( !openmpi_rm_pbs )
+ openmpi_rm_pbs? ( !openmpi_rm_slurm )
+"
+
+RDEPEND="
+ !sys-cluster/mpich
+ !sys-cluster/mpich2
+ !sys-cluster/nullmpi
+ !sys-cluster/prrte
+ >=dev-libs/libevent-2.0.22:=[threads(+)]
+ >=sys-apps/hwloc-2.0.2:=
+ sys-cluster/pmix:=
+ >=sys-libs/zlib-1.2.8-r1
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= )
+ openmpi_fabrics_ofed? ( sys-cluster/rdma-core )
+ openmpi_fabrics_knem? ( sys-cluster/knem )
+ openmpi_rm_pbs? ( sys-cluster/torque )
+ openmpi_rm_slurm? ( sys-cluster/slurm )
+"
+DEPEND="${RDEPEND}
+ valgrind? ( dev-debug/valgrind )"
+
+pkg_setup() {
+ fortran-2_pkg_setup
+
+ elog
+ elog "OpenMPI has an overwhelming count of configuration options."
+ elog "Don't forget the EXTRA_ECONF environment variable can let you"
+ elog "specify configure options if you find them necessary."
+ elog
+}
+
+src_prepare() {
+ default
+ elibtoolize
+
+ # Avoid test which ends up looking at system mounts
+ echo "int main() { return 0; }" > test/util/opal_path_nfs.c || die
+
+ # Necessary for scalibility, see
+ # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
+ echo 'oob_tcp_listen_mode = listen_thread' \
+ >> opal/etc/openmpi-mca-params.conf || die
+}
+
+src_configure() {
+ # -Werror=lto-type-mismatch, -Werror=strict-aliasing
+ # The former even prevents successfully running ./configure, but both appear
+ # at `make` time as well.
+ # https://bugs.gentoo.org/913040
+ # https://github.com/open-mpi/ompi/issues/12674
+ # https://github.com/open-mpi/ompi/issues/12675
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ local myconf=(
+ --disable-mpi-java
+ # configure takes a looooong time, but upstream currently force
+ # constriants on caching:
+ # https://github.com/open-mpi/ompi/blob/9eec56222a5c98d13790c9ee74877f1562ac27e8/config/opal_config_subdir.m4#L118
+ # so no --cache-dir for now.
+ --enable-mpi-fortran=$(usex fortran all no)
+ --enable-prte-prefix-by-default
+ --enable-pretty-print-stacktrace
+
+ --sysconfdir="${EPREFIX}/etc/${PN}"
+
+ --with-hwloc=external
+ --with-libevent=external
+
+ # Oiriginally supposed to be re-enabled for 5.0!
+ # See https://github.com/open-mpi/ompi/issues/9697#issuecomment-1003746357
+ # and https://bugs.gentoo.org/828123#c14
+ #
+ # However as of 5.0.3 the docs still say:
+ #
+ # As such, supporting data heterogeneity is a feature that has fallen
+ # into disrepair and is currently known to be broken in this release
+ # of Open MPI.
+ --disable-heterogeneous
+
+ $(use_enable ipv6)
+ $(use_enable peruse)
+ $(use_enable romio io-romio)
+
+ $(use_with cma)
+
+ $(use_with cuda cuda "${EPREFIX}"/opt/cuda)
+ $(use_with valgrind)
+ $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr)
+ $(use_with openmpi_rm_pbs tm)
+ $(use_with openmpi_rm_slurm slurm)
+ )
+
+ CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconf[@]}"
+}
+
+src_compile() {
+ emake V=1
+}
+
+src_test() {
+ emake -C test check
+}
+
+src_install() {
+ default
+
+ # Remove la files, no static libs are installed and we have pkg-config
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sys-cluster/openmpi/openmpi-5.0.5.ebuild b/sys-cluster/openmpi/openmpi-5.0.5.ebuild
new file mode 100644
index 000000000000..37b017e4483e
--- /dev/null
+++ b/sys-cluster/openmpi/openmpi-5.0.5.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_NEEDED=fortran
+inherit cuda flag-o-matic fortran-2 libtool
+
+MY_P=${P/-mpi}
+
+IUSE_OPENMPI_FABRICS="
+ openmpi_fabrics_ofed
+ openmpi_fabrics_knem"
+
+IUSE_OPENMPI_RM="
+ openmpi_rm_pbs
+ openmpi_rm_slurm"
+
+DESCRIPTION="A high-performance message passing library (MPI)"
+HOMEPAGE="https://www.open-mpi.org"
+SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 -arm ~arm64 -ppc ~ppc64 -x86 ~amd64-linux"
+IUSE="cma cuda fortran ipv6 peruse romio valgrind
+ ${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM}"
+
+REQUIRED_USE="
+ openmpi_rm_slurm? ( !openmpi_rm_pbs )
+ openmpi_rm_pbs? ( !openmpi_rm_slurm )
+"
+
+RDEPEND="
+ !sys-cluster/mpich
+ !sys-cluster/mpich2
+ !sys-cluster/nullmpi
+ >=dev-libs/libevent-2.0.22:=[threads(+)]
+ >=sys-apps/hwloc-2.0.2:=
+ sys-cluster/pmix:=
+ sys-cluster/prrte:=
+ >=sys-libs/zlib-1.2.8-r1
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-6.5.19-r1:= )
+ openmpi_fabrics_ofed? ( sys-cluster/rdma-core )
+ openmpi_fabrics_knem? ( sys-cluster/knem )
+ openmpi_rm_pbs? ( sys-cluster/torque )
+ openmpi_rm_slurm? ( sys-cluster/slurm )
+"
+DEPEND="${RDEPEND}
+ valgrind? ( dev-debug/valgrind )"
+
+pkg_setup() {
+ fortran-2_pkg_setup
+
+ elog
+ elog "OpenMPI has an overwhelming count of configuration options."
+ elog "Don't forget the EXTRA_ECONF environment variable can let you"
+ elog "specify configure options if you find them necessary."
+ elog
+}
+
+src_prepare() {
+ default
+ elibtoolize
+
+ # Avoid test which ends up looking at system mounts
+ echo "int main() { return 0; }" > test/util/opal_path_nfs.c || die
+
+ # Necessary for scalibility, see
+ # http://www.open-mpi.org/community/lists/users/2008/09/6514.php
+ echo 'oob_tcp_listen_mode = listen_thread' \
+ >> opal/etc/openmpi-mca-params.conf || die
+}
+
+src_configure() {
+ # -Werror=lto-type-mismatch, -Werror=strict-aliasing
+ # The former even prevents successfully running ./configure, but both appear
+ # at `make` time as well.
+ # https://bugs.gentoo.org/913040
+ # https://github.com/open-mpi/ompi/issues/12674
+ # https://github.com/open-mpi/ompi/issues/12675
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ local myconf=(
+ --disable-mpi-java
+ # configure takes a looooong time, but upstream currently force
+ # constriants on caching:
+ # https://github.com/open-mpi/ompi/blob/9eec56222a5c98d13790c9ee74877f1562ac27e8/config/opal_config_subdir.m4#L118
+ # so no --cache-dir for now.
+ --enable-mpi-fortran=$(usex fortran all no)
+ --enable-prte-prefix-by-default
+ --enable-pretty-print-stacktrace
+
+ --sysconfdir="${EPREFIX}/etc/${PN}"
+
+ --with-hwloc=external
+ --with-libevent=external
+ --with-prrte=external
+
+ # Oiriginally supposed to be re-enabled for 5.0!
+ # See https://github.com/open-mpi/ompi/issues/9697#issuecomment-1003746357
+ # and https://bugs.gentoo.org/828123#c14
+ #
+ # However as of 5.0.3 the docs still say:
+ #
+ # As such, supporting data heterogeneity is a feature that has fallen
+ # into disrepair and is currently known to be broken in this release
+ # of Open MPI.
+ --disable-heterogeneous
+
+ $(use_enable ipv6)
+ $(use_enable peruse)
+ $(use_enable romio io-romio)
+
+ $(use_with cma)
+
+ $(use_with cuda cuda "${EPREFIX}"/opt/cuda)
+ $(use_with valgrind)
+ $(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr)
+ $(use_with openmpi_rm_pbs tm)
+ $(use_with openmpi_rm_slurm slurm)
+ )
+
+ CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconf[@]}"
+}
+
+src_compile() {
+ emake V=1
+}
+
+src_test() {
+ emake -C test check
+}
+
+src_install() {
+ default
+
+ # Remove la files, no static libs are installed and we have pkg-config
+ find "${ED}" -name '*.la' -delete || die
+}