Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-libs/starpu: add 1.3.10, drop 1.2.6-r1 #28973

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev-libs/starpu/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DIST starpu-1.2.6.tar.gz 8911397 BLAKE2B a73cb3b230282b0b828fdaeb65f5491928fde1b2e5797f739a99c87318fa29511196f7121a72ff91bf0d663938b50f200d108fdce2726eb7ea8c7e997156dc13 SHA512 5971f8875dd54c73486583456bd0bc81c2865cb5b8bba6d47a5085d76fa6294c869efdd1c1d14144d08e6c14cbbea3a773474d46aa827ca24f58d9fb57ccbed7
DIST starpu-1.3.10.tar.gz 12933570 BLAKE2B 05ef78d585daf5f011fcd9e1978304a3265fb2368fd61e6bb0a18bf8e5dbcba0314e9bda7cf2b8a8f7ec1c3392b373af4c33df38727cb76c457da486753e097c SHA512 27e28766944192bc1ac0f713299bf34a74006288605ce3a2f8e29cabddafec02de41cdcafa8d91eb8c370ad5dd2e7cf89d3114bf2e74af8db2121bf4a31ea65d
DIST starpu-1.3.9.tar.gz 12961635 BLAKE2B a6eede7c369cacaba5b7330bd6a003f624f58972432d43619aeaf47c1e9e16da871a18c24f8f511f002cb7667c247c13562b4fed2348e2af4f8e402418e1801d SHA512 7150fc11828e8f9ede036af782ff0f89946d9aaed341771436eb8cbb91be7b0faccb6280a5c3bd63800d1a73ec8518a45a02d9f3e137007751cf1c5979678295
10 changes: 8 additions & 2 deletions dev-libs/starpu/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<maintainer type="person" proxied="yes">
<email>alex.fan.q@gmail.com</email>
<name>Alex Fan</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
StarPU is a runtime system that offers support for heterogeneous
multicore machines. While many efforts are devoted to design efficient
Expand All @@ -13,7 +20,6 @@
</longdescription>
<use>
<flag name="cuda">Enable NVIDIA CUDA toolkit support</flag>
<flag name="gcc-plugin">Enable GCC extension plugin (experimental)</flag>
<flag name="opencl">Enable OpenCL support</flag>
<flag name="spinlock-check">Enable spinlock check</flag>
<flag name="valgrind">Enable <pkg>dev-util/valgrind</pkg> support</flag>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
FORTRAN_STANDARD=90
EAPI=8

FORTRAN_NEEDED="fortran"
inherit autotools cuda fortran-2 toolchain-funcs
FORTRAN_STANDARD=90

inherit autotools cuda fortran-2 multiprocessing toolchain-funcs

DESCRIPTION="Unified runtime system for heterogeneous multicore architectures"
HOMEPAGE="http://starpu.gforge.inria.fr/"
SRC_URI="https://gforge.inria.fr/frs/download.php/file/37744/${P}.tar.gz"
HOMEPAGE="https://starpu.gitlabpages.inria.fr/"
SRC_URI="https://files.inria.fr/${PN}/${P}/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0/5"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
SLOT="0/7"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"

IUSE="
blas cuda doc examples fftw fortran gcc-plugin mpi opencl opengl
spinlock-check static-libs test valgrind
blas cuda doc examples fftw fortran hdf5 mpi opencl opengl
openmp spinlock-check static-libs test valgrind
"
RESTRICT="!test? ( test )"

RDEPEND="
sci-mathematics/glpk:0=
sys-apps/hwloc:0=
>=sys-apps/hwloc-2.3.0:0=
blas? ( virtual/blas )
cuda? ( dev-util/nvidia-cuda-toolkit
x11-drivers/nvidia-drivers )
fftw? ( sci-libs/fftw:3.0= )
hdf5? ( sci-libs/hdf5:0= )
mpi? ( virtual/mpi )
opencl? ( virtual/opencl )
opengl? ( media-libs/freeglut:0= )
Expand All @@ -37,7 +40,6 @@ DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
doc? ( app-doc/doxygen virtual/latex-base )
test? ( gcc-plugin? ( dev-scheme/guile ) )
"

pkg_pretend() {
Expand All @@ -53,7 +55,7 @@ src_prepare() {
default

sed -i -e '/Libs.private/s/@LDFLAGS@//g' *.pc.in */*.pc.in || die
sed -i -e 's:-O3::g;s:-D_FORTIFY_SOURCE=1::g' configure.ac || die
sed -i -e 's/-O3//g;s/-D_FORTIFY_SOURCE=1//g' configure.ac || die
eautoreconf

use cuda && cuda_src_prepare
Expand All @@ -62,16 +64,21 @@ src_prepare() {
src_configure() {
use blas && export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)"

# increase maximum managed cpus to pass tests that oversubscribe
my_maxcpus=$( expr $(get_nproc) '*' 2 )

econf \
--disable-magma \
$(use mpi && use_enable test mpi-check) \
$(use_enable cuda) \
$(use_enable doc build-doc) \
$(use_enable doc build-doc-pdf) \
$(use_enable fftw starpufft) \
$(use_enable fortran) \
$(use_enable gcc-plugin gcc-extensions) \
$(use_enable hdf5) \
$(use_enable mpi) \
$(use_enable opencl) \
$(use_enable opengl opengl-render) \
$(use_enable openmp) \
$(use_enable spinlock-check) \
$(use_enable static-libs static) \
$(use_enable valgrind) \
Expand All @@ -80,19 +87,23 @@ src_configure() {
--disable-debug \
--disable-fstack-protector-all \
--disable-full-gdb-information \
--disable-starpu-top
--enable-quick-check \
--enable-maxcpus=${my_maxcpus}
}

src_test() {
emake -j1 showcheck
# Avoids timeouts in e.g. starpu_task_wait_for_all, starpu_task_wait
# See bug #803158
# https://gitub.u-bordeaux.fr/starpu/starpu/-/blob/master/contrib/ci.inria.fr/job-1-check.sh
export STARPU_TIMEOUT_ENV=3600
export MPIEXEC_TIMEOUT=3600

MAKEOPTS='-j1' default
}

src_install() {
default
use doc && dodoc -r doc/doxygen/*.pdf doc/doxygen/html
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
use examples && dodoc -r examples
find "${ED}" -name '*.la' -delete || die
}