mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
sys-cluster/*: drop packages masked for removal since >30 days
Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
@@ -1,130 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_10 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="OpenHPC metapackage"
|
||||
|
||||
HOMEPAGE="
|
||||
https://openhpc.community
|
||||
https://github.com/openhpc/ohpc
|
||||
"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="0"
|
||||
LICENSE="metapackage"
|
||||
IUSE="+io-libs +parallel +perf-tools +python +runtimes +serial +slurm-client +slurm-server" #geopm warewulf
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
#TODO: add metis/partition useflags in a way that doesn't pull in non-free parmetis
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
app-shells/pdsh
|
||||
sys-apps/ipmitool
|
||||
sys-process/numactl
|
||||
virtual/mpi
|
||||
|| (
|
||||
sys-libs/libunwind
|
||||
sys-libs/llvm-libunwind
|
||||
)
|
||||
io-libs? (
|
||||
sci-libs/hdf5[cxx,fortran,mpi]
|
||||
sci-libs/netcdf[hdf5,mpi]
|
||||
sci-libs/netcdf-cxx
|
||||
sci-libs/netcdf-fortran
|
||||
sys-cluster/adios2[fortran,hdf5,mpi]
|
||||
sys-cluster/parallel-netcdf
|
||||
python? (
|
||||
$(python_gen_cond_dep '
|
||||
sys-cluster/adios2[python,${PYTHON_SINGLE_USEDEP}]
|
||||
')
|
||||
)
|
||||
)
|
||||
parallel? (
|
||||
dev-libs/boost[mpi]
|
||||
sci-libs/fftw[mpi]
|
||||
sci-libs/hypre[mpi]
|
||||
sci-libs/mfem[mpi,mumps,petsc,slepc]
|
||||
sci-libs/mumps[mpi,scotch]
|
||||
sci-libs/scalapack
|
||||
sci-libs/scotch[mpi,threads]
|
||||
sci-libs/superlu_dist[fortran]
|
||||
sci-libs/trilinos[hypre,mumps,scotch,scalapack,petsc]
|
||||
sci-mathematics/petsc[fftw,hypre,mpi,mumps,scotch]
|
||||
sci-mathematics/slepc[mpi]
|
||||
sys-cluster/opencoarrays
|
||||
io-libs? (
|
||||
sci-libs/mfem[netcdf]
|
||||
sci-libs/trilinos[hdf5,netcdf]
|
||||
sci-mathematics/petsc[hdf5]
|
||||
)
|
||||
python? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-libs/boost[numpy,python,${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
serial? ( sci-libs/mfem[superlu] )
|
||||
)
|
||||
perf-tools? (
|
||||
dev-libs/papi
|
||||
sys-apps/likwid
|
||||
sys-cluster/dimemas
|
||||
sys-cluster/extrae[${PYTHON_SINGLE_USEDEP}]
|
||||
sys-cluster/mpi-benchmarks
|
||||
sys-cluster/osu-micro-benchmarks
|
||||
)
|
||||
python? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/mpi4py[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/scipy[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
runtimes? (
|
||||
sys-cluster/charliecloud[${PYTHON_SINGLE_USEDEP}]
|
||||
app-containers/apptainer
|
||||
)
|
||||
serial? (
|
||||
dev-lang/R[lapack]
|
||||
sci-libs/gsl[cblas-external]
|
||||
sci-libs/metis
|
||||
sci-libs/openblas[eselect-ldso]
|
||||
sci-libs/plasma
|
||||
sci-libs/superlu
|
||||
)
|
||||
slurm-client? (
|
||||
sys-apps/hwloc
|
||||
sys-cluster/slurm[numa,pam]
|
||||
io-libs? ( sys-cluster/slurm[hdf5] )
|
||||
)
|
||||
slurm-server? (
|
||||
sys-cluster/slurm[numa,perl,slurmdbd]
|
||||
io-libs? ( sys-cluster/slurm[hdf5] )
|
||||
)
|
||||
"
|
||||
# perf-tools
|
||||
#tau
|
||||
|
||||
# slurm-server
|
||||
#pdsh-slurm
|
||||
|
||||
#geopm? (
|
||||
#geopm[mpi]
|
||||
#)
|
||||
|
||||
#warewulf? (
|
||||
#warewulf-cluster
|
||||
#warewulf-common-localdb
|
||||
#warewulf-common
|
||||
#warewulf-ipmi
|
||||
#warewulf-ipmi-initramfs
|
||||
#warewulf-provision
|
||||
#warewulf-provision-initramfs
|
||||
#warewulf-provision-server-ipxe
|
||||
#warewulf-provision-server
|
||||
#warewulf-vnfs
|
||||
#)
|
||||
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/openhpc/ohpc/issues</bugs-to>
|
||||
<remote-id type="github">openhpc/ohpc</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<!--<flag name="geopm">Global Extensible Open Power Manager</flag>-->
|
||||
<flag name="io-libs">Collection of IO libraries</flag>
|
||||
<flag name="parallel">Collection of parallel libraries</flag>
|
||||
<flag name="perf-tools">Collection of performance tools</flag>
|
||||
<flag name="python">Collection of python related libraries</flag>
|
||||
<flag name="runtimes">Collection of runtimes</flag>
|
||||
<flag name="serial">Collection of serial libraries</flag>
|
||||
<flag name="slurm-client">Collection of client packages for SLURM</flag>
|
||||
<flag name="slurm-server">Collection of server packages for SLURM</flag>
|
||||
<!--<flag name="warewulf">Collection of base packages for Warewulf provisioning</flag>-->
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST SOS-1.5.0.tar.gz 544478 BLAKE2B f2a63fbf39958ac238e2d687d866c2f600956b933f956a4d8552acff29973de4d3e46a323b3f8eb3a63d395728cbafdfe119ea99d0fb5e17250d879ff269fb0e SHA512 0506bda8ab898cd1aaea82e230c64e17dde4ccfb3b70c9a4397c90d08643b3c7f96e7eae70e1a2b706b33737e979315372bcc338fc957652cd1b5e55d7a560ad
|
||||
DIST SOS-1.5.1.tar.gz 590101 BLAKE2B c6ca85942dbfbd4ecc02700ec2b84ab4f6fd00809ba77448973255ddea8ffab13977bbbe6bb7a2d69476f7fc5e6de43e077193dc8a6761a0de05d5a9c8a0a6a2 SHA512 a181a14c841611fbac2ba69b8f25ce856e1e5e9c9a7bbd37482e77d61b83365863778bcbaf898c4d6489c6b9c0aa69fb8fd60bc5468bcc01f82002d0533d0378
|
||||
@@ -1,133 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
FORTRAN_NEEDED="fortran"
|
||||
|
||||
inherit autotools fortran-2
|
||||
|
||||
DESCRIPTION="implementation of the OpenSHMEM specification"
|
||||
HOMEPAGE="https://github.com/Sandia-OpenSHMEM/SOS"
|
||||
SRC_URI="https://github.com/Sandia-OpenSHMEM/SOS/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE_OFI_MR="
|
||||
ofi_mr_basic
|
||||
+ofi_mr_scalable
|
||||
ofi_mr_rma-event
|
||||
"
|
||||
IUSE_TOTAL_DATA_ORDERING="
|
||||
total_data_ordering_always
|
||||
+total_data_ordering_check
|
||||
total_data_ordering_never
|
||||
"
|
||||
IUSE="${IUSE_OFI_MR} ${IUSE_TOTAL_DATA_ORDERING} av-map bounce-buffers cma completion-polling cxx
|
||||
debug error-checking fortran long-fortran-header manual-progress memcpy ofi ofi-fence openmp
|
||||
+pmi portals4 profiling pthread-mutexes remote-virtual-addressing threads
|
||||
thread-completion ucx xpmem"
|
||||
|
||||
RDEPEND="
|
||||
ofi? ( sys-block/libfabric )
|
||||
pmi? ( || ( sys-cluster/slurm sys-cluster/pmix[pmi] ) )
|
||||
portals4? ( sys-cluster/portals4 )
|
||||
ucx? ( sys-cluster/ucx )
|
||||
xpmem? ( sys-kernel/xpmem )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="
|
||||
^^ ( ${IUSE_OFI_MR/+/} )
|
||||
^^ ( ${IUSE_TOTAL_DATA_ORDERING/+/} )
|
||||
?? ( cma xpmem )
|
||||
?? ( ofi portals4 )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
FORTRAN_NEED_OPENMP=0
|
||||
use openmp && FORTRAN_NEED_OPENMP=1
|
||||
|
||||
fortran-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
#copied from bootstrap
|
||||
if [[ ! -d ./config ]]; then
|
||||
mkdir ./config || die
|
||||
fi
|
||||
FILES=./man/*.1
|
||||
echo -n "dist_man1_MANS =" > ./man/Makefile.am || die
|
||||
for f in $FILES
|
||||
do
|
||||
echo -n " $(basename $f)" >> ./man/Makefile.am || die
|
||||
done
|
||||
FILES=./man/*.3
|
||||
echo -e -n "\ndist_man3_MANS =" >> ./man/Makefile.am || die
|
||||
for f in $FILES
|
||||
do
|
||||
echo -n " $(basename $f)" >> ./man/Makefile.am || die
|
||||
done
|
||||
echo -e "\n" >> ./man/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use pmi; then
|
||||
export CC=mpicc
|
||||
export CXX=mpicxx
|
||||
fi
|
||||
|
||||
local ofimr
|
||||
use ofi_mr_basic && ofimr="basic"
|
||||
use ofi_mr_scalable && ofimr="scalable"
|
||||
use ofi_mr_rma-event && ofimr="rma-event"
|
||||
|
||||
local tda
|
||||
use total_data_ordering_always && tda="always"
|
||||
use total_data_ordering_check && tda="check"
|
||||
use total_data_ordering_never && tda="never"
|
||||
|
||||
local myconf=(
|
||||
--disable-picky
|
||||
--disable-pmi-simple
|
||||
--disable-rpm-prefix
|
||||
--enable-ofi-mr="${ofimr}"
|
||||
--enable-total-data-ordering="${tda}"
|
||||
$(use_enable av-map)
|
||||
$(use_enable bounce-buffers)
|
||||
$(use_enable completion-polling)
|
||||
$(use_enable cxx)
|
||||
$(use_enable debug)
|
||||
$(use_enable error-checking)
|
||||
$(use_enable fortran)
|
||||
$(use_enable long-fortran-header)
|
||||
$(use_enable manual-progress)
|
||||
$(use_enable memcpy)
|
||||
$(use_enable ofi-fence)
|
||||
$(use_enable openmp)
|
||||
$(use_enable pmi pmi-mpi)
|
||||
$(use_enable profiling)
|
||||
$(use_enable pthread-mutexes)
|
||||
$(use_enable remote-virtual-addressing)
|
||||
$(use_enable threads)
|
||||
$(use_enable thread-completion)
|
||||
|
||||
$(use_with cma)
|
||||
$(use_with ofi)
|
||||
$(use_with pmi)
|
||||
$(use_with portals4)
|
||||
$(use_with ucx)
|
||||
$(use_with xpmem)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,133 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
FORTRAN_NEEDED="fortran"
|
||||
|
||||
inherit autotools fortran-2
|
||||
|
||||
DESCRIPTION="implementation of the OpenSHMEM specification"
|
||||
HOMEPAGE="https://github.com/Sandia-OpenSHMEM/SOS"
|
||||
SRC_URI="https://github.com/Sandia-OpenSHMEM/SOS/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE_OFI_MR="
|
||||
ofi_mr_basic
|
||||
+ofi_mr_scalable
|
||||
ofi_mr_rma-event
|
||||
"
|
||||
IUSE_TOTAL_DATA_ORDERING="
|
||||
total_data_ordering_always
|
||||
+total_data_ordering_check
|
||||
total_data_ordering_never
|
||||
"
|
||||
IUSE="${IUSE_OFI_MR} ${IUSE_TOTAL_DATA_ORDERING} av-map bounce-buffers cma completion-polling cxx
|
||||
debug error-checking fortran long-fortran-header manual-progress memcpy ofi ofi-fence openmp
|
||||
+pmi portals4 profiling pthread-mutexes remote-virtual-addressing threads
|
||||
thread-completion ucx xpmem"
|
||||
|
||||
RDEPEND="
|
||||
ofi? ( sys-block/libfabric )
|
||||
pmi? ( || ( sys-cluster/slurm sys-cluster/pmix[pmi] ) )
|
||||
portals4? ( sys-cluster/portals4 )
|
||||
ucx? ( sys-cluster/ucx )
|
||||
xpmem? ( sys-kernel/xpmem )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="
|
||||
^^ ( ${IUSE_OFI_MR/+/} )
|
||||
^^ ( ${IUSE_TOTAL_DATA_ORDERING/+/} )
|
||||
?? ( cma xpmem )
|
||||
?? ( ofi portals4 )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
FORTRAN_NEED_OPENMP=0
|
||||
use openmp && FORTRAN_NEED_OPENMP=1
|
||||
|
||||
fortran-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
#copied from bootstrap
|
||||
if [[ ! -d ./config ]]; then
|
||||
mkdir ./config || die
|
||||
fi
|
||||
FILES=./man/*.1
|
||||
echo -n "dist_man1_MANS =" > ./man/Makefile.am || die
|
||||
for f in $FILES
|
||||
do
|
||||
echo -n " $(basename $f)" >> ./man/Makefile.am || die
|
||||
done
|
||||
FILES=./man/*.3
|
||||
echo -e -n "\ndist_man3_MANS =" >> ./man/Makefile.am || die
|
||||
for f in $FILES
|
||||
do
|
||||
echo -n " $(basename $f)" >> ./man/Makefile.am || die
|
||||
done
|
||||
echo -e "\n" >> ./man/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use pmi; then
|
||||
export CC=mpicc
|
||||
export CXX=mpicxx
|
||||
fi
|
||||
|
||||
local ofimr
|
||||
use ofi_mr_basic && ofimr="basic"
|
||||
use ofi_mr_scalable && ofimr="scalable"
|
||||
use ofi_mr_rma-event && ofimr="rma-event"
|
||||
|
||||
local tda
|
||||
use total_data_ordering_always && tda="always"
|
||||
use total_data_ordering_check && tda="check"
|
||||
use total_data_ordering_never && tda="never"
|
||||
|
||||
local myconf=(
|
||||
--disable-picky
|
||||
--disable-pmi-simple
|
||||
--disable-rpm-prefix
|
||||
--enable-ofi-mr="${ofimr}"
|
||||
--enable-total-data-ordering="${tda}"
|
||||
$(use_enable av-map)
|
||||
$(use_enable bounce-buffers)
|
||||
$(use_enable completion-polling)
|
||||
$(use_enable cxx)
|
||||
$(use_enable debug)
|
||||
$(use_enable error-checking)
|
||||
$(use_enable fortran)
|
||||
$(use_enable long-fortran-header)
|
||||
$(use_enable manual-progress)
|
||||
$(use_enable memcpy)
|
||||
$(use_enable ofi-fence)
|
||||
$(use_enable openmp)
|
||||
$(use_enable pmi pmi-mpi)
|
||||
$(use_enable profiling)
|
||||
$(use_enable pthread-mutexes)
|
||||
$(use_enable remote-virtual-addressing)
|
||||
$(use_enable threads)
|
||||
$(use_enable thread-completion)
|
||||
|
||||
$(use_with cma)
|
||||
$(use_with ofi)
|
||||
$(use_with pmi)
|
||||
$(use_with portals4)
|
||||
$(use_with ucx)
|
||||
$(use_with xpmem)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="av-map">enable av-map instead of av-table in the OFI transport</flag>
|
||||
<flag name="bounce-buffers">Enable bounce buffers by default</flag>
|
||||
<flag name="cma">Use cross-memory attach for on-node communication</flag>
|
||||
<flag name="completion-polling">Enable polling in quiet, fence, and local completion operations</flag>
|
||||
<flag name="cxx">Enable C++ bindings</flag>
|
||||
<flag name="error-checking">Enable error checking in SHMEM calls. This will increase the overhead of communication operations.</flag>
|
||||
<flag name="fortran">Enable fortran bindings</flag>
|
||||
<flag name="long-fortran-header">Enable long Fortran header, including all function declarations</flag>
|
||||
<flag name="manual-progress">Enable intermittent progress calls inside transport layer</flag>
|
||||
<flag name="memcpy">Use memcpy to perform local put/get operations</flag>
|
||||
<!--<flag name="nonblocking-fence">By default, shmem_fence() is equivalent to shmem_quiet(), which can be a lengthy operation. Enabling this feature results in the ordering point being moved from the shmem_fence() to the next put-like call, which can help improve overlap in some cases.</flag>-->
|
||||
<flag name="ofi">Use libfabric as transport layer</flag>
|
||||
<flag name="ofi-fence">Use FI_FENCE feature to optimize put-with-signal operations</flag>
|
||||
<flag name="pmi">Use MPI for process management</flag>
|
||||
<flag name="portals4">Use portals4 as transport layer</flag>
|
||||
<flag name="profiling">Enable profiling (pshmem) interface</flag>
|
||||
<flag name="pthread-mutexes">Use pthread mutexes instead of internal queueing locks</flag>
|
||||
<flag name="remote-virtual-addressing"> Enable optimizations assuming the symmetric heap is always symmetric with regards to virtual address. This may cause applications to abort during shmem_init() if such a symmetric heap can not be created, but will reduce the instruction count for some operations. This optimization also requires that the Portals 4 implementation support BIND_INACCESSIBLE on LEs. This optimization will reduce the overhead of communication calls.</flag>
|
||||
<flag name="thread-completion">Support SHMEM_THREAD_MULTIPLE in OFI transport using FI_THREAD_COMPLETION thread safety model instead of FI_THREAD_SAFE</flag>
|
||||
<flag name="threads">Enable threading support</flag>
|
||||
<flag name="ucx">Use ucx transport</flag>
|
||||
<flag name="xpmem">Use xpmem transport</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/Sandia-OpenSHMEM/SOS/issues</bugs-to>
|
||||
<remote-id type="github">Sandia-OpenSHMEM/SOS</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST TCL-1.0.tar.gz 26572 BLAKE2B d36d7f1f406b141358e803b00c0f8abb6eede322e69cae9d99f3e5e8edeba40035cb88549d72e0d6f53048fb29c5ed8dc942286660f50da9e7f6f13a3a266902 SHA512 abc3eea6926501431295af3e88a870ef0da29301a34b71a4c00fcc22fe4e132a6377aeae45281254f9f5e3a99124f595e2e371ee7fc058c4830e58d4077a9793
|
||||
@@ -1,78 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Transparent Checkpointing Library"
|
||||
HOMEPAGE="https://github.com/bsc-pm/TCL"
|
||||
SRC_URI="https://github.com/bsc-pm/TCL/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE_TCL="
|
||||
tcl_debug
|
||||
tcl_instrumentation
|
||||
tcl_instrumentation-debug
|
||||
+tcl_performance
|
||||
"
|
||||
IUSE="${IUSE_TCL} fti scr veloc"
|
||||
|
||||
RDEPEND="
|
||||
virtual/mpi
|
||||
|
||||
fti? ( sys-cluster/fti )
|
||||
scr? ( sys-cluster/scr )
|
||||
veloc? ( sys-cluster/veloc )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="
|
||||
|| ( fti scr veloc )
|
||||
|| ( ${IUSE_TCL//+/} )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--disable-static
|
||||
--enable-shared
|
||||
--includedir="${EPREFIX}/usr/include/TCL"
|
||||
--with-mpi="${EPREFIX}/usr"
|
||||
|
||||
$(use_enable tcl_debug debug)
|
||||
$(use_enable tcl_instrumentation instrumentation)
|
||||
$(use_enable tcl_instrumentation-debug instrumentation-debug)
|
||||
$(use_enable tcl_performance performance)
|
||||
)
|
||||
|
||||
if use fti; then
|
||||
myconf+=( "--with-fti=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-fti" )
|
||||
fi
|
||||
if use scr; then
|
||||
myconf+=( "--with-scr=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-scr" )
|
||||
fi
|
||||
if use veloc; then
|
||||
myconf+=( "--with-veloc=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-veloc" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc NEWS AUTHORS INSTALL
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bsc-pm/TCL/issues</bugs-to>
|
||||
<remote-id type="github">bsc-pm/TCL</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="fti">Enable <pkg>sys-cluster/fti</pkg> backend</flag>
|
||||
<flag name="scr">Enable <pkg>sys-cluster/scr</pkg> backend</flag>
|
||||
<flag name="veloc">Enable <pkg>sys-cluster/veloc</pkg> backend</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST clusteringsuite-2.6.9.tar.gz 6964570 BLAKE2B bb4823d9918bc12707ae09d0c1220552b2621bfe39ab67dd67e03fba91036f2c8ed294f54a2bdd659b8bd58925aca02db85eb93986fe69e999e5b2bef915b564 SHA512 9df9ca57fc68b9cd7d17f13c1b915e3422a07c71f060ff2e7a38a31cf6e1aa234b869402bda6b7502c4844e25593156a1bb50714c2d272bafd10cd7690fc17eb
|
||||
@@ -1,131 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..11} )
|
||||
|
||||
inherit autotools python-any-r1
|
||||
|
||||
DESCRIPTION="Expose the main performance trends in applications computation structure"
|
||||
HOMEPAGE="
|
||||
https://tools.bsc.es/cluster-analysis
|
||||
https://github.com/bsc-performance-tools/clustering-suite
|
||||
"
|
||||
SRC_URI="https://codeload.github.com/bsc-performance-tools/clustering-suite/tar.gz/refs/tags/${PV} -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/clustering-suite-${PV}"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc mpi muster treedbscan"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-unbundle-libANN.patch"
|
||||
"${FILESDIR}/${P}-do-not-add-boost-thread-ldpath.patch"
|
||||
"${FILESDIR}/${P}-Build-fix-for-GCC-11-invocable-as-const.patch"
|
||||
)
|
||||
# attempt at unbundling libbsctools failed
|
||||
# current libbsctools seems to be too old (missing headers)
|
||||
# "${FILESDIR}/${PN}-unbundle-libbsctools.patch"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/bzip2
|
||||
dev-libs/boost:=
|
||||
sci-libs/ann
|
||||
!sys-cluster/libbsctools
|
||||
mpi? ( virtual/mpi )
|
||||
muster? ( sys-cluster/muster )
|
||||
treedbscan? (
|
||||
dev-libs/boost:=[threads(+)]
|
||||
dev-libs/gmp
|
||||
dev-libs/mpfr
|
||||
sci-mathematics/cgal
|
||||
sys-cluster/synapse
|
||||
)
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
"
|
||||
BDEPEND="doc? ( app-text/doxygen )"
|
||||
|
||||
src_prepare() {
|
||||
use muster && PATCHES+=( "${FILESDIR}/${P}-force-muster-discovery.patch" )
|
||||
rm -r src/libANN || die
|
||||
# rm -r pcfparser_svn3942 || die
|
||||
# rm -r src/libParaverTraceParser || die
|
||||
default
|
||||
sed -e "s|iterate/lib|iterate/$(get_libdir)|g" -i config/gmp_mpfr.m4 || die
|
||||
sed -e "s|dir/lib|dir/$(get_libdir)|g" -i config/ax_muster.m4 || die
|
||||
|
||||
#from bootstrap
|
||||
echo "#*********************************************************************" >> configure.ac || die
|
||||
echo "#'configure.ac.' automatically generated by 'autogen.sh' do not modify" >> configure.ac || die
|
||||
echo "#*********************************************************************" >> configure.ac || die
|
||||
echo "" >> configure.ac || die
|
||||
sed s/@@VERSION_NUMBER@@/${PV}/ < configure.ac.template >> configure.ac || die
|
||||
|
||||
AT_M4DIR="config" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
|
||||
local myconf=(
|
||||
--disable-old-pcfparser
|
||||
--disable-static
|
||||
--disable-static-boost
|
||||
--enable-shared
|
||||
--with-boost="${EPREFIX}/usr"
|
||||
--with-pic
|
||||
)
|
||||
|
||||
if use mpi; then
|
||||
myconf+=( "--with-mpi=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-mpi" )
|
||||
fi
|
||||
if use muster; then
|
||||
myconf+=( "--with-muster=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-muster" )
|
||||
fi
|
||||
if use treedbscan; then
|
||||
myconf+=( "--enable-treedbscan" )
|
||||
myconf+=( "--with-cgal=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-gmp=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-mpfr=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-synapse=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-cgal" )
|
||||
myconf+=( "--without-gmp" )
|
||||
myconf+=( "--without-mpfr" )
|
||||
myconf+=( "--without-synapse" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
if use doc ; then
|
||||
pushd doc || die
|
||||
emake build-documentation
|
||||
popd
|
||||
fi
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
MAKEOPTS="-j1" DESTDIR="${D}" emake install
|
||||
|
||||
cd doc || die
|
||||
dodoc -r *.pdf
|
||||
|
||||
rm "${ED}/usr/share/doc/clusteringsuite_manual.pdf" || die
|
||||
mv "${ED}/usr/share/example" "${ED}/usr/share/doc/${PF}/examples" || die
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/src/libSharedComponents/SequenceScore.hpp
|
||||
+++ b/src/libSharedComponents/SequenceScore.hpp
|
||||
@@ -73,7 +73,7 @@ static const cluster_id_t SEQUENCE_GAP = NOISE_CLUSTERID-1;
|
||||
struct TraceObjectsCompare
|
||||
{
|
||||
bool operator()(const pair<task_id_t, thread_id_t>& obj1,
|
||||
- const pair<task_id_t, thread_id_t>& obj2)
|
||||
+ const pair<task_id_t, thread_id_t>& obj2) const
|
||||
{
|
||||
if (obj1.first < obj2.first)
|
||||
{
|
||||
@@ -1,15 +0,0 @@
|
||||
--- a/configure.ac.template
|
||||
+++ b/configure.ac.template
|
||||
@@ -417,12 +417,10 @@
|
||||
|
||||
if test "x$BOOST_THREAD_LIBS" != "x"; then
|
||||
|
||||
- CLUSTERING_CLEAN_LDFLAGS="${CLUSTERING_CLEAN_LDFLAGS} -L${BOOST_THREAD_LDPATH}"
|
||||
CLUSTERING_LIBS="${CLUSTERING_LIBS} ${BOOST_THREAD_LIBS}"
|
||||
|
||||
AX_CHECK_IS_SYSTEM_LIBRARY_PATH([${BOOST_THREAD_LDPATH}],[],
|
||||
[
|
||||
- CLUSTERING_LDFLAGS="${CLUSTERING_LDFLAGS} -L${BOOST_THREAD_LDPATH} -R${BOOST_THREAD_LDPATH}"
|
||||
CLUSTERING_LD_LIBRARY_PATH="${CLUSTERING_LD_LIBRARY_PATH}:${BOOST_THREAD_LDPATH}"
|
||||
])
|
||||
else
|
||||
@@ -1,37 +0,0 @@
|
||||
--- a/config/ax_muster.m4
|
||||
+++ b/config/ax_muster.m4
|
||||
@@ -6,21 +6,11 @@
|
||||
[--with-muster=MUSTER_DIR],
|
||||
[sets the given directory as location of muster includes and libs (needs Boost libraries)]
|
||||
),
|
||||
- [muster_dir="$withval"]
|
||||
- [muster_dir="/usr)"]
|
||||
+ [muster_dir="$withval"],
|
||||
+ [muster_dir="/usr"]
|
||||
)
|
||||
|
||||
- ac_muster_installed="yes"
|
||||
-
|
||||
- if test ! -f $muster_dir/include/partition.h; then
|
||||
- ac_muster_installed="no"
|
||||
- fi
|
||||
-
|
||||
- if test ! -f $muster_dir/lib/libmuster.so; then
|
||||
- ac_muster_installed="no"
|
||||
- fi
|
||||
-
|
||||
- if test "x${ac_muster_enabled}" = "xyes"; then
|
||||
+ ac_muster_installed="yes"
|
||||
|
||||
MUSTER_CPPFLAGS="-I$muster_dir/include"
|
||||
MUSTER_LDFLAGS="-L$muster_dir/lib -R$muster_dir/lib"
|
||||
@@ -36,9 +26,5 @@
|
||||
|
||||
# execute ACTION-IF-FOUND
|
||||
ifelse([$1], , :, [$1])
|
||||
- else
|
||||
- # execute ACTION-IF-NOT-FOUND
|
||||
- ifelse([$2], , :, [$2])
|
||||
- fi
|
||||
|
||||
])
|
||||
@@ -1,85 +0,0 @@
|
||||
--- a/configure.ac.template
|
||||
+++ b/configure.ac.template
|
||||
@@ -548,7 +548,6 @@
|
||||
src/libParaverTraceParser/Makefile
|
||||
src/libSharedComponents/Makefile
|
||||
src/libSharedComponents/kalign2/Makefile
|
||||
-src/libANN/Makefile
|
||||
src/libClustering/gmeans/Makefile
|
||||
src/libClustering/Makefile
|
||||
src/libTraceClustering/Makefile
|
||||
--- a/PATHS
|
||||
+++ b/PATHS
|
||||
@@ -4,4 +4,3 @@
|
||||
CLUSTERING_DIR = $(SRC_DIR)/libClustering
|
||||
CLUSTERING_ALG_DIR = $(SRC_DIR)/libClusteringAlgorithms
|
||||
PARAVER_PARSER_DIR = $(SRC_DIR)/libParaverTraceParser
|
||||
-ANN_DIR = $(SRC_DIR)/libANN
|
||||
--- a/src/libClustering/Makefile.am
|
||||
+++ b/src/libClustering/Makefile.am
|
||||
@@ -70,11 +70,10 @@
|
||||
|
||||
endif
|
||||
|
||||
-libClustering_la_CPPFLAGS=@CLUSTERING_CPPFLAGS@ -I$(top_srcdir)/src/libANN
|
||||
-libClustering_la_LDFLAGS=@CLUSTERING_LDFLAGS@ @CLUSTERING_CPPFLAGS@
|
||||
+libClustering_la_CPPFLAGS=@CLUSTERING_CPPFLAGS@ -I/usr/include/ANN
|
||||
+libClustering_la_LDFLAGS=@CLUSTERING_LDFLAGS@ @CLUSTERING_CPPFLAGS@ -lann
|
||||
libClustering_la_LIBADD= \
|
||||
$(top_builddir)/src/BasicClasses/libBasicClasses.la \
|
||||
- $(top_builddir)/src/libANN/libANN.la \
|
||||
./gmeans/libInternalGMeans.la \
|
||||
@CLUSTERING_LIBS@
|
||||
|
||||
--- a/src/libDistributedClustering/Makefile.am
|
||||
+++ b/src/libDistributedClustering/Makefile.am
|
||||
@@ -32,7 +32,7 @@
|
||||
-I$(top_srcdir)/src/libSharedComponents\
|
||||
-I$(top_srcdir)/pcfparser_svn3942\
|
||||
-I$(top_srcdir)/src/libParaverTraceParser\
|
||||
- -I$(top_srcdir)/src/libANN
|
||||
+ -I/usr/include/ANN
|
||||
|
||||
libDistributedClustering_la_LDFLAGS = @CLUSTERING_LDFLAGS@ @CLUSTERING_CPPFLAGS@
|
||||
libDistributedClustering_la_LIBADD= \
|
||||
--- a/src/libSharedComponents/Makefile.am
|
||||
+++ b/src/libSharedComponents/Makefile.am
|
||||
@@ -76,7 +76,7 @@
|
||||
libSharedComponents_la_CPPFLAGS = @CLUSTERING_CPPFLAGS@\
|
||||
-I${top_srcdir}/src/libClustering\
|
||||
-I${top_srcdir}/src/libParaverTraceParser\
|
||||
- -I${top_srcdir}/src/libANN
|
||||
+ -I/usr/include/ANN
|
||||
if MAKE_OLD_PCFPARSER
|
||||
libSharedComponents_la_CPPFLAGS += -I${top_srcdir}/pcfparser_svn3942/old
|
||||
else
|
||||
--- a/src/libTraceClustering/Makefile.am
|
||||
+++ b/src/libTraceClustering/Makefile.am
|
||||
@@ -7,7 +7,7 @@
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/src/BasicClasses \
|
||||
- -I$(top_srcdir)/src/libANN \
|
||||
+ -I/usr/include/ANN \
|
||||
-I$(top_srcdir)/src/libSharedComponents \
|
||||
-I$(top_srcdir)/src/libParaverTraceParser \
|
||||
-I$(top_srcdir)/common_utilities \
|
||||
@@ -28,7 +28,7 @@
|
||||
-I$(top_srcdir)/src/libClustering\
|
||||
-I$(top_srcdir)/src/libSharedComponents\
|
||||
-I$(top_srcdir)/pcfparser_svn3942\
|
||||
- -I$(top_srcdir)/src/libANN\
|
||||
+ -I/usr/include/ANN\
|
||||
-I$(top_srcdir)/src/libParaverTraceParser
|
||||
|
||||
libTraceClustering_la_LDFLAGS = @CLUSTERING_CPPFLAGS@ @CLUSTERING_LDFLAGS@
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -5,7 +5,6 @@
|
||||
SUBDIRS = \
|
||||
BasicClasses \
|
||||
libParaverTraceParser \
|
||||
- libANN \
|
||||
libClustering \
|
||||
libSharedComponents \
|
||||
libTraceClustering \
|
||||
@@ -1,123 +0,0 @@
|
||||
--- a/configure.ac.template
|
||||
+++ b/configure.ac.template
|
||||
@@ -533,17 +533,12 @@
|
||||
AC_SUBST(CLUSTERING_LIBS)
|
||||
AC_SUBST(CLUSTERING_LD_LIBRARY_PATH)
|
||||
|
||||
-dnl NOTE: the 'pcfparser_svn3942' is a temporary dependency until the new
|
||||
-dnl 'common_files' package is defined
|
||||
-
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
include/Makefile
|
||||
common_utilities/Makefile
|
||||
-pcfparser_svn3942/Makefile
|
||||
src/Makefile
|
||||
src/BasicClasses/Makefile
|
||||
-src/libParaverTraceParser/Makefile
|
||||
src/libSharedComponents/Makefile
|
||||
src/libSharedComponents/kalign2/Makefile
|
||||
src/libClustering/gmeans/Makefile
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -8,9 +8,7 @@
|
||||
|
||||
## -I@common_filesdir@
|
||||
|
||||
-## The 'pcfparser_svn3942' and 'common_utilities' directory will
|
||||
-## be merged in the new 'common-files' package
|
||||
-SUBDIRS = include pcfparser_svn3942 common_utilities src scripts doc
|
||||
+SUBDIRS = include common_utilities src scripts doc
|
||||
|
||||
instdir = $(includedir)
|
||||
|
||||
--- a/src/ClustersSequenceScore/Makefile.am
|
||||
+++ b/src/ClustersSequenceScore/Makefile.am
|
||||
@@ -9,8 +9,7 @@
|
||||
@CLUSTERING_CPPFLAGS@\
|
||||
-I$(top_srcdir)/src/libClustering\
|
||||
-I$(top_srcdir)/src/libTraceClustering\
|
||||
- -I$(top_srcdir)/src/libSharedComponents\
|
||||
- -I$(top_srcdir)/pcfparser_svn3942
|
||||
+ -I$(top_srcdir)/src/libSharedComponents
|
||||
|
||||
ClustersSequenceScore_bin_LDFLAGS = @CLUSTERING_LDFLAGS@
|
||||
|
||||
--- a/src/libDistributedClustering/Makefile.am
|
||||
+++ b/src/libDistributedClustering/Makefile.am
|
||||
@@ -30,8 +30,6 @@
|
||||
libDistributedClustering_la_CPPFLAGS = @CLUSTERING_CPPFLAGS@\
|
||||
-I$(top_srcdir)/src/libClustering\
|
||||
-I$(top_srcdir)/src/libSharedComponents\
|
||||
- -I$(top_srcdir)/pcfparser_svn3942\
|
||||
- -I$(top_srcdir)/src/libParaverTraceParser\
|
||||
-I/usr/include/ANN
|
||||
|
||||
libDistributedClustering_la_LDFLAGS = @CLUSTERING_LDFLAGS@ @CLUSTERING_CPPFLAGS@
|
||||
--- a/src/libSharedComponents/Makefile.am
|
||||
+++ b/src/libSharedComponents/Makefile.am
|
||||
@@ -75,21 +75,12 @@
|
||||
|
||||
libSharedComponents_la_CPPFLAGS = @CLUSTERING_CPPFLAGS@\
|
||||
-I${top_srcdir}/src/libClustering\
|
||||
- -I${top_srcdir}/src/libParaverTraceParser\
|
||||
-I/usr/include/ANN
|
||||
-if MAKE_OLD_PCFPARSER
|
||||
- libSharedComponents_la_CPPFLAGS += -I${top_srcdir}/pcfparser_svn3942/old
|
||||
-else
|
||||
- libSharedComponents_la_CPPFLAGS += -I${top_srcdir}/pcfparser_svn3942
|
||||
-endif
|
||||
-
|
||||
|
||||
libSharedComponents_la_LDFLAGS = @CLUSTERING_LDFLAGS@ @CLUSTERING_CPPFLAGS@
|
||||
|
||||
libSharedComponents_la_LIBADD = \
|
||||
- $(top_builddir)/pcfparser_svn3942/libparavertraceconfig.la \
|
||||
$(top_builddir)/src/libClustering/libClustering.la \
|
||||
- $(top_builddir)/src/libParaverTraceParser/libParaverTraceParser.la \
|
||||
./kalign2/libKalign2.la \
|
||||
@CLUSTERING_LIBS@
|
||||
|
||||
--- a/src/libTraceClustering/Makefile.am
|
||||
+++ b/src/libTraceClustering/Makefile.am
|
||||
@@ -9,9 +9,7 @@
|
||||
-I$(top_srcdir)/src/BasicClasses \
|
||||
-I/usr/include/ANN \
|
||||
-I$(top_srcdir)/src/libSharedComponents \
|
||||
- -I$(top_srcdir)/src/libParaverTraceParser \
|
||||
- -I$(top_srcdir)/common_utilities \
|
||||
- -I$(top_srcdir)/pcfparser_svn3942
|
||||
+ -I$(top_srcdir)/common_utilities
|
||||
|
||||
instdir = $(includedir)
|
||||
|
||||
@@ -27,9 +25,7 @@
|
||||
libTraceClustering_la_CPPFLAGS = @CLUSTERING_CPPFLAGS@\
|
||||
-I$(top_srcdir)/src/libClustering\
|
||||
-I$(top_srcdir)/src/libSharedComponents\
|
||||
- -I$(top_srcdir)/pcfparser_svn3942\
|
||||
- -I/usr/include/ANN\
|
||||
- -I$(top_srcdir)/src/libParaverTraceParser
|
||||
+ -I/usr/include/ANN
|
||||
|
||||
libTraceClustering_la_LDFLAGS = @CLUSTERING_CPPFLAGS@ @CLUSTERING_LDFLAGS@
|
||||
libTraceClustering_la_LIBADD = \
|
||||
@@ -37,8 +33,5 @@
|
||||
$(top_builddir)/src/libSharedComponents/libSharedComponents.la \
|
||||
@CLUSTERING_LIBS@
|
||||
|
||||
-## $(top_srcdir)/src/libParaverTraceParser/libParaverTraceParser.la
|
||||
-
|
||||
-
|
||||
|
||||
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
SUBDIRS = \
|
||||
BasicClasses \
|
||||
- libParaverTraceParser \
|
||||
libClustering \
|
||||
libSharedComponents \
|
||||
libTraceClustering \
|
||||
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="mpi">enable mpi for distributed version</flag>
|
||||
<flag name="muster">enable support for <pkg>sys-cluster/muster</pkg> algorithms</flag>
|
||||
<flag name="treedbscan">enable compilation of TreeDBSCAN support for <pkg>sys-cluster/extrae</pkg></flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bsc-performance-tools/clustering-suite/issues</bugs-to>
|
||||
<remote-id type="github">bsc-performance-tools/clustering-suite</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST dlb-2.1.tar.gz 1847799 BLAKE2B 5fb4b010761e9883292e22f3254669116107aff4200b96930afd80c7f9073dbceef1b5109471cb948f9f74b8d7144a14137b4ea06dbee01f9857411f144a7fc2 SHA512 6199a05188b0afbeba3401b8182be5e1c04fbfd24a1ea0360d42d0f1518323df08c925ee4529a51e0065bb6653f54ed03106e9a77daf6e30564e2a9753839597
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_10 )
|
||||
PYTHON_REQ_USE="tk"
|
||||
|
||||
inherit autotools python-single-r1
|
||||
|
||||
DESCRIPTION="Dynamically react to application imbalance by modifying the number of resources"
|
||||
HOMEPAGE="https://github.com/bsc-pm/dlb"
|
||||
SRC_URI="https://github.com/bsc-pm/dlb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="hwloc instrumentation mpi openmp test"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
hwloc? ( sys-apps/hwloc )
|
||||
mpi? ( virtual/mpi )
|
||||
"
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
${DEPEND}
|
||||
dev-lang/tk
|
||||
$(python_gen_cond_dep 'dev-python/matplotlib[tk,${PYTHON_USEDEP}]')
|
||||
"
|
||||
BDEPEND="test? ( sys-devel/bc )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-pygen-python3.patch"
|
||||
"${FILESDIR}/${P}-tkinter.patch"
|
||||
"${FILESDIR}/${P}-chmod.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -e "s|lib/|$(get_libdir)/|" -i scripts/viewer/dlb_wrapper.py || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-shared
|
||||
--with-pic
|
||||
$(use_enable instrumentation)
|
||||
$(use_enable openmp)
|
||||
$(use_enable test static)
|
||||
$(use_with hwloc)
|
||||
$(use_with mpi)
|
||||
)
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="${ED}" default
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
find "${D}" -name '*.a' -delete || die
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -726,11 +726,11 @@
|
||||
clean-local: clean-rpm clean-deb clean-doc
|
||||
|
||||
install-data-hook:
|
||||
- chmod +x $(mpiompexamplesdir)/run.sh
|
||||
- chmod +x $(mpiompomptexamplesdir)/run.sh
|
||||
- chmod +x $(mpiompssexamplesdir)/run.sh
|
||||
- chmod +x $(omptexamplesdir)/run.sh
|
||||
- chmod +x $(statsexamplesdir)/run.sh
|
||||
+ chmod +x ${DESTDIR}/$(mpiompexamplesdir)/run.sh
|
||||
+ chmod +x ${DESTDIR}/$(mpiompomptexamplesdir)/run.sh
|
||||
+ chmod +x ${DESTDIR}/$(mpiompssexamplesdir)/run.sh
|
||||
+ chmod +x ${DESTDIR}/$(omptexamplesdir)/run.sh
|
||||
+ chmod +x ${DESTDIR}/$(statsexamplesdir)/run.sh
|
||||
|
||||
dist-hook:
|
||||
if [ -x "$(GIT)" ]; \
|
||||
@@ -1,215 +0,0 @@
|
||||
From 62597a9b65bc51759568278561e415717e1e6ed4 Mon Sep 17 00:00:00 2001
|
||||
From: Victor Lopez <victor.lopez@bsc.es>
|
||||
Date: Tue, 17 Nov 2020 15:24:14 +0100
|
||||
Subject: [PATCH] Run pygen script with either python2 or python3
|
||||
|
||||
---
|
||||
Makefile.am | 7 +-
|
||||
configure.ac | 2 +
|
||||
scripts/pygen.py3 | 166 ++++++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 174 insertions(+), 1 deletion(-)
|
||||
create mode 100755 scripts/pygen.py3
|
||||
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -83,7 +83,11 @@ nodist_include_HEADERS = src/LB_MPI/MPI_interface.h \
|
||||
#********************************************************************************
|
||||
# Built Sources
|
||||
#********************************************************************************
|
||||
-MPI_GENERATOR = $(top_srcdir)/scripts/pygen.py
|
||||
+if PYTHON3
|
||||
+MPI_GENERATOR = $(PYTHON) $(top_srcdir)/scripts/pygen.py3
|
||||
+else
|
||||
+MPI_GENERATOR = $(PYTHON) $(top_srcdir)/scripts/pygen.py
|
||||
+endif
|
||||
MPICALLS_DB = $(top_srcdir)/src/LB_MPI/mpicalls.json
|
||||
EXTRA_DIST += src/LB_MPI/mpicalls.json
|
||||
|
||||
@@ -739,6 +743,7 @@ EXTRA_DIST += \
|
||||
scripts/run_with_dlb.sh.in \
|
||||
scripts/dlb.spec \
|
||||
scripts/pygen.py \
|
||||
+ scripts/pygen.py3 \
|
||||
scripts/viewer/dlb_cpu_usage.in \
|
||||
scripts/viewer/dlb_viewer.py.in \
|
||||
$(DEBIAN_EXTRA) \
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -235,6 +235,8 @@ AC_SUBST([INSTR_DEBUG_CPPFLAGS])
|
||||
AM_PATH_PYTHON
|
||||
AX_COMPARE_VERSION([$PYTHON_VERSION], [ge], [2.7], [lit=yes], [lit=no])
|
||||
AM_CONDITIONAL([LIT_SUPPORT], [test "x$lit" = xyes])
|
||||
+AX_COMPARE_VERSION([$PYTHON_VERSION], [ge], [3.0], [python3=yes], [python3=no])
|
||||
+AM_CONDITIONAL([PYTHON3], [test "x$python3" = xyes])
|
||||
|
||||
# check for OpenMP availability
|
||||
AC_OPENMP
|
||||
--- /dev/null
|
||||
+++ b/scripts/pygen.py3
|
||||
@@ -0,0 +1,166 @@
|
||||
+#!/usr/bin/env python3
|
||||
+
|
||||
+import sys
|
||||
+import getopt
|
||||
+import json
|
||||
+import re
|
||||
+
|
||||
+class MPIFile:
|
||||
+ _filename = None
|
||||
+ _mpi_calls = None
|
||||
+
|
||||
+ def __init__(self, inputfile, outputfile, calls=[]):
|
||||
+ self._in_filename = inputfile
|
||||
+ self._out_filename = outputfile
|
||||
+ self._mpi_calls = calls
|
||||
+
|
||||
+ def parse(self):
|
||||
+ with open(self._in_filename, 'r') as in_f:
|
||||
+ with open(self._out_filename, 'w+') as out_f:
|
||||
+ pragma_scope = False
|
||||
+ pragma_block = ''
|
||||
+ condition = 'True'
|
||||
+ for line in in_f:
|
||||
+ if pragma_scope:
|
||||
+ if '#pragma pygen end' in line:
|
||||
+ pragma_scope = False
|
||||
+ parsed = self._parse_block(pragma_block, condition)
|
||||
+ out_f.write(parsed)
|
||||
+ else:
|
||||
+ pragma_block += line
|
||||
+ else:
|
||||
+ if '#pragma pygen start' in line:
|
||||
+ pragma_scope = True
|
||||
+ pragma_block = ''
|
||||
+ condition = self._parse_condition(line)
|
||||
+ elif line != '':
|
||||
+ out_f.write(line)
|
||||
+
|
||||
+ def _parse_condition(self, line):
|
||||
+ try:
|
||||
+ match = re.match(r"#pragma pygen start where\((?P<condition>.*)\)", line)
|
||||
+ condition_str = match.group('condition')
|
||||
+
|
||||
+ # Type: "string" in key
|
||||
+ match = re.match(r'(?P<string>"[A-Za-z0-9_\./\\-]+") in (?P<key>[A-Za-z0-9_]+)', condition_str)
|
||||
+ if match:
|
||||
+ return '{string} in func[\'{key}\']'.format(
|
||||
+ string = match.group('string'),
|
||||
+ key = match.group('key'))
|
||||
+
|
||||
+ # Type: "string" not in key
|
||||
+ match = re.match(r'(?P<string>"[A-Za-z0-9_\./\\-]+") not in (?P<key>[A-Za-z0-9_]+)', condition_str)
|
||||
+ if match:
|
||||
+ return '{string} not in func[\'{key}\']'.format(
|
||||
+ string = match.group('string'),
|
||||
+ key = match.group('key'))
|
||||
+
|
||||
+ except AttributeError:
|
||||
+ # If some regexp fail, just ignore everything else and return
|
||||
+ pass
|
||||
+
|
||||
+ return 'True'
|
||||
+
|
||||
+
|
||||
+ def _parse_block(self, block, condition):
|
||||
+ if not isinstance(condition, str) or not condition:
|
||||
+ condition = 'True'
|
||||
+
|
||||
+ parsed = ''
|
||||
+ for func in self._mpi_calls:
|
||||
+ if func['enabled'] and eval(condition):
|
||||
+ parsed += block.format(
|
||||
+ MPI_NAME = func['name'],
|
||||
+ MPI_LCASE = func['name'].lower(),
|
||||
+ C_PARAMS = func['cpar'],
|
||||
+ F_PARAMS = func['fpar'],
|
||||
+ C_ARG_LIST = func['c_args'],
|
||||
+ F_ARG_LIST = func['f_args'],
|
||||
+ TAGS = func['tags'],
|
||||
+ MPI_KEYNAME = func['name'][4:],
|
||||
+ BEFORE_FUNC = func['before'],
|
||||
+ AFTER_FUNC = func['after']
|
||||
+ )
|
||||
+ return parsed
|
||||
+
|
||||
+
|
||||
+def enrich(mpi_calls):
|
||||
+ last_word = re.compile(r'(\w+)(\[\])?\Z')
|
||||
+ for func in mpi_calls:
|
||||
+ # C: Parse arg list: "int argc, char *argv[]" -> "argc, argv"
|
||||
+ c_args = []
|
||||
+ if func['cpar'] != 'void':
|
||||
+ for arg in func['cpar'].split(','):
|
||||
+ try:
|
||||
+ c_args.append(last_word.search(arg).group(1))
|
||||
+ except AttributeError:
|
||||
+ print('Error parsing function ' + func['name'])
|
||||
+ raise
|
||||
+ func['c_args'] = ', '.join(c_args)
|
||||
+ # Fortran: Parse arg list: "MPI_Fint *comm, MPI_Fint *ierror" -> "comm, ierror"
|
||||
+ f_args = []
|
||||
+ if func['fpar'] != '':
|
||||
+ for arg in func['fpar'].split(','):
|
||||
+ try:
|
||||
+ f_args.append(last_word.search(arg).group(1))
|
||||
+ except AttributeError:
|
||||
+ print('Error parsing function ' + func['name'])
|
||||
+ raise
|
||||
+ func['f_args'] = ', '.join(f_args)
|
||||
+
|
||||
+ # Set tag _Unknown if not defined
|
||||
+ func.setdefault('tags', '_Unknown')
|
||||
+ if func['tags'] == '':
|
||||
+ func['tags'] = '_Unknown'
|
||||
+
|
||||
+ # Set before and after funtions
|
||||
+ if 'MPI_Init' in func['name']:
|
||||
+ func['before'] = 'before_init()'
|
||||
+ func['after'] = 'after_init()'
|
||||
+ elif 'MPI_Finalize' in func['name']:
|
||||
+ func['before'] = 'before_finalize()'
|
||||
+ func['after'] = 'after_finalize()'
|
||||
+ else:
|
||||
+ func['before'] = 'before_mpi({0}, 0, 0)'.format(func['name'].replace('MPI_', ''))
|
||||
+ func['after'] = 'after_mpi({0})'.format(func['name'].replace('MPI_', ''))
|
||||
+
|
||||
+ # Set flag enabled if not defined
|
||||
+ func.setdefault('enabled', True)
|
||||
+
|
||||
+ func.setdefault('info', '')
|
||||
+
|
||||
+def main(argv):
|
||||
+ inputfile = ''
|
||||
+ outputfile = ''
|
||||
+ jsonfile = ''
|
||||
+ try:
|
||||
+ opts, args = getopt.getopt(argv[1:],'hi:o:j:',['ifile=','ofile=','json='])
|
||||
+ except getopt.GetoptError:
|
||||
+ print(argv[0], ' -i <inputfile> -o <outputfile> -j <jsonfile>')
|
||||
+ sys.exit(2)
|
||||
+ for opt, arg in opts:
|
||||
+ if opt == '-h':
|
||||
+ print(argv[0], ' -i <inputfile> -o <outputfile> -j <jsonfile>')
|
||||
+ sys.exit()
|
||||
+ elif opt in ('-i', '--ifile'):
|
||||
+ inputfile = arg
|
||||
+ elif opt in ('-o', '--ofile'):
|
||||
+ outputfile = arg
|
||||
+ elif opt in ('-j', '--json'):
|
||||
+ jsonfile = arg
|
||||
+
|
||||
+ if inputfile == '' or outputfile == '' or jsonfile == '':
|
||||
+ print(argv[0], ' -i <inputfile> -o <outputfile> -j <jsonfile>')
|
||||
+ sys.exit()
|
||||
+
|
||||
+ # Read JSON file
|
||||
+ with open(jsonfile, 'r') as json_data:
|
||||
+ mpi_calls = json.load(json_data)['mpi_calls']
|
||||
+ enrich(mpi_calls)
|
||||
+
|
||||
+ # Parse input file
|
||||
+ mpi_intercept_c = MPIFile(inputfile, outputfile, mpi_calls)
|
||||
+ mpi_intercept_c.parse()
|
||||
+
|
||||
+if __name__ == '__main__':
|
||||
+ main(sys.argv)
|
||||
@@ -1,102 +0,0 @@
|
||||
--- a/scripts/viewer/dlb_cpu_usage.in
|
||||
+++ b/scripts/viewer/dlb_cpu_usage.in
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
-import Tkinter as tk
|
||||
-import ttk
|
||||
-import tkMessageBox
|
||||
+import tkinter as tk
|
||||
+from tkinter import ttk
|
||||
+from tkinter import messagebox
|
||||
import random
|
||||
|
||||
import sys
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
def start(self):
|
||||
if self.viewer.empty():
|
||||
- tkMessageBox.showinfo("Warning", "Add some process before starting")
|
||||
+ messagebox.showinfo("Warning", "Add some process before starting")
|
||||
if self.viewer:
|
||||
self.viewer.start()
|
||||
|
||||
--- a/scripts/viewer/dlb_viewer.py.in
|
||||
+++ b/scripts/viewer/dlb_viewer.py.in
|
||||
@@ -3,11 +3,12 @@
|
||||
import time
|
||||
from collections import deque
|
||||
# GUI
|
||||
-import Tkinter as tk
|
||||
-import ttk
|
||||
+import tkinter as tk
|
||||
+from tkinter import ttk
|
||||
import progressmeter
|
||||
from matplotlib.figure import Figure, figaspect
|
||||
-from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
|
||||
+from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
|
||||
+from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT
|
||||
#DLB
|
||||
import dlb_wrapper
|
||||
|
||||
@@ -39,7 +40,7 @@
|
||||
self.canvas.get_tk_widget().pack(side=tk.TOP, fill=tk.BOTH, expand=1)
|
||||
|
||||
if self.debug:
|
||||
- self.toolbar = NavigationToolbar2TkAgg(self.canvas, self )
|
||||
+ self.toolbar = NavigationToolbar2QT(self.canvas, self )
|
||||
self.toolbar.pack()
|
||||
self.toolbar.update()
|
||||
|
||||
--- a/scripts/viewer/progressmeter.py
|
||||
+++ b/scripts/viewer/progressmeter.py
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
'''Michael Lange <klappnase (at) freakmail (dot) de>
|
||||
-The Meter class provides a simple progress bar widget for Tkinter.
|
||||
+The Meter class provides a simple progress bar widget for tkinter.
|
||||
|
||||
INITIALIZATION OPTIONS:
|
||||
-The widget accepts all options of a Tkinter.Frame plus the following:
|
||||
+The widget accepts all options of a tkinter.Frame plus the following:
|
||||
|
||||
fillcolor -- the color that is used to indicate the progress of the
|
||||
corresponding process; default is "orchid1".
|
||||
@@ -18,22 +18,22 @@
|
||||
textcolor -- the color to use for the widget's text; default is "black".
|
||||
|
||||
WIDGET METHODS:
|
||||
-All methods of a Tkinter.Frame can be used; additionally there are two widget specific methods:
|
||||
+All methods of a tkinter.Frame can be used; additionally there are two widget specific methods:
|
||||
|
||||
get() -- returns a tuple of the form (value, text)
|
||||
set(value, text) -- updates the widget's value and the displayed text;
|
||||
if value is omitted it defaults to 0.0 , text defaults to None .
|
||||
'''
|
||||
|
||||
-import Tkinter
|
||||
+import tkinter
|
||||
|
||||
-class Meter(Tkinter.Frame):
|
||||
+class Meter(tkinter.Frame):
|
||||
def __init__(self, master, width=300, height=20, bg='white', fillcolor='orchid1',\
|
||||
value=0.0, text=None, font=None, textcolor='black', *args, **kw):
|
||||
- Tkinter.Frame.__init__(self, master, bg=bg, width=width, height=height, *args, **kw)
|
||||
+ tkinter.Frame.__init__(self, master, bg=bg, width=width, height=height, *args, **kw)
|
||||
self._value = value
|
||||
|
||||
- self._canv = Tkinter.Canvas(self, bg=self['bg'], width=self['width'], height=self['height'],\
|
||||
+ self._canv = tkinter.Canvas(self, bg=self['bg'], width=self['width'], height=self['height'],\
|
||||
highlightthickness=0, relief='flat', bd=0)
|
||||
self._canv.pack(fill='both', expand=1)
|
||||
self._rect = self._canv.create_rectangle(0, 0, 0, self._canv.winfo_reqheight(), fill=fillcolor,\
|
||||
@@ -84,7 +84,7 @@
|
||||
meter.set(value, 'Demo successfully finished')
|
||||
|
||||
if __name__ == '__main__':
|
||||
- root = Tkinter.Tk(className='meter demo')
|
||||
+ root = tkinter.Tk(className='meter demo')
|
||||
m = Meter(root, relief='ridge', bd=3)
|
||||
m.pack(fill='x')
|
||||
m.set(0.0, 'Starting demo...')
|
||||
@@ -1,31 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Dynamic Load Balancing Library
|
||||
DLB is a dynamic library designed to speed up HPC hybrid
|
||||
applications (i.e., two levels of parallelism) by improving the load balance of the outer
|
||||
level of parallelism (e.g., MPI) by dynamically redistributing the computational resources
|
||||
at the inner level of parallelism (e.g., OpenMP). at run time. This dynamism allows DLB to
|
||||
react to different sources of imbalance: Algorithm, data, hardware architecture and
|
||||
resource availability among others.
|
||||
|
||||
Lend When Idle LeWI (Lend When Idle) is the algorithm
|
||||
used to redistribute the computational resources that are not being used from one process
|
||||
to another process inside the same shared memory node in order to speed up its execution.
|
||||
|
||||
Dynamic Resource Ownership Manager
|
||||
DROM (Dynamic Resource Ownership Manager) is the algorithm used to manage the CPU affinity of a process running a shared memory programming model (e.g., OpenMP)
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">bsc-pm/dlb</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="hwloc">add <pkg>sys-apps/hwloc</pkg>support</flag>
|
||||
<flag name="instrumentation">enable <pkg>sys-cluster/extrae</pkg> instrumentation</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST er-0.1.0.tar.gz 20960 BLAKE2B f7e40459928a7a9b62c6fc2b89590b8e19087ba8741ec2666570a750bb58557e87e852e2a5fd80cf8ba59396533d8ffe9e69f089a2deda9d99f83e112e557f93 SHA512 e642ff388b810fd612a6482f9b324ecd5b0f93240d3cc476725aed21f84f3f9421a29838dac2ea6e4e12b7bbb57b628d82cb40d017094ab80c2b229478072a1b
|
||||
DIST er-0.3.0.tar.gz 20740 BLAKE2B 7180d8cdbfbfe56c323b8919a983add202b817b8bd39570ea7c836717a4018c2f1db222f66444da887c5d133978e825ba17dabf5070a08722f916866ae339c52 SHA512 96f0a17d28e19b895d0cc3be980b3af5c0e938e37d198d603153fc8388ce094250f6986d43894457ea673fea222f8db84b6dab7ea0c9b32b7cf58ddd7d452959
|
||||
@@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="High-level distributed erasure coding lib combining shuffile and redset"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/er"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/KVTree[mpi]
|
||||
dev-libs/shuffile
|
||||
sys-cluster/redset
|
||||
sys-libs/zlib
|
||||
virtual/mpi
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
-DER_LINK_STATIC=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="High-level distributed erasure coding lib combining shuffile and redset"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/er"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/KVTree[mpi]
|
||||
dev-libs/shuffile
|
||||
sys-cluster/redset
|
||||
virtual/mpi
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( sys-cluster/rankstr )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.1.0-no-static.patch" )
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
-DER_LINK_STATIC=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -25,13 +25,3 @@
|
||||
SET_TARGET_PROPERTIES(er PROPERTIES OUTPUT_NAME er CLEAN_DIRECT_OUTPUT 1)
|
||||
INSTALL(TARGETS er DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF()
|
||||
-
|
||||
-ADD_LIBRARY(er-static STATIC $<TARGET_OBJECTS:er_o>)
|
||||
-IF(ER_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(er-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(er-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(ER_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(er-static ${ER_EXTERNAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(er-static PROPERTIES OUTPUT_NAME er CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS er-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
@@ -1,16 +0,0 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -23,13 +23,3 @@
|
||||
TARGET_LINK_LIBRARIES(er ${ER_EXTERNAL_LIBS})
|
||||
SET_TARGET_PROPERTIES(er PROPERTIES OUTPUT_NAME er CLEAN_DIRECT_OUTPUT 1)
|
||||
INSTALL(TARGETS er DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
-ADD_LIBRARY(er-static STATIC $<TARGET_OBJECTS:er_o>)
|
||||
-IF(ER_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(er-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(er-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(ER_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(er-static ${ER_EXTERNAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(er-static PROPERTIES OUTPUT_NAME er CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS er-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">ECP-VeloC/er</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">Encode/Rebuild (ER)
|
||||
This module combines the funcitonality of shuffile and redset, which lets both migrate and rebuild files within an MPI job. It is useful for moving and rebuilding data files on distributed storage, e.g., node-local storage, particularly when MPI ranks may be running on different compute nodes than when they originally created their files.
|
||||
|
||||
To encode, one defines a redundancy scheme and then applies the redundancy scheme to a list of files also providing a name for the encoded set. To rebuild, one specifies the name of the encoded set. Additionally, there is a function to remove the encoding information, which is needed when removing a dataset.
|
||||
|
||||
Currently, er assumes the group of processes participating is the same as MPI_COMM_WORLD.
|
||||
|
||||
Usage is documented in src/er.h
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST extrae-4.0.1.tar.gz 1082141 BLAKE2B a049f744aa1d2f6770e620939c5d7981098e86908843f0b9d38d06a4aa9103ed2d551a34301dbf57857316340031d536a814d82a9ab0aab5ab70b063171ff52c SHA512 58cbe06b1eb738dba3c9d38a96ca8a9bf442c492214e086876af25b8d7e01c379b46281f6815763e87e0e69214636f95486d48b1b6ce088b54d24b4d77ff0920
|
||||
@@ -1,237 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( pypy3 python3_{10..11} )
|
||||
|
||||
inherit autotools java-pkg-opt-2 python-single-r1
|
||||
|
||||
DESCRIPTION="Instrumentation framework to generate execution traces of parallel runtimes"
|
||||
HOMEPAGE="https://github.com/bsc-performance-tools/extrae"
|
||||
SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE_INSTRUMENT="
|
||||
+instrument_dynamic-memory
|
||||
+instrument_io
|
||||
+instrument_syscall
|
||||
"
|
||||
IUSE="${IUSE_INSTRUMENT} clustering dlsym doc dyninst heterogeneous inotify memkind
|
||||
merge-in-trace nanos online opencl openmp openshmem +parallel-merge pebs-sampling
|
||||
peruse +posix-clock pthread sampling +single-mpi-lib sionlib smpss spectral +xml"
|
||||
|
||||
#aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
|
||||
#TODO: cuda cupti gm mx gaspi aspectj
|
||||
#TODO: support llvm libunwind, llvm rt, elftoolchain
|
||||
|
||||
# aspectj? ( >=dev-java/aspectj-1.9.6 )
|
||||
CDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/libpfm:=
|
||||
dev-libs/libxml2
|
||||
dev-libs/papi
|
||||
!sys-cluster/openmpi[libompitrace(+)]
|
||||
sys-libs/binutils-libs:=
|
||||
sys-libs/libunwind:=
|
||||
sys-libs/zlib
|
||||
virtual/mpi
|
||||
|
||||
clustering? ( sys-cluster/clusteringsuite[treedbscan] )
|
||||
dyninst? (
|
||||
dev-libs/boost:=
|
||||
dev-libs/dyninst
|
||||
dev-libs/libdwarf
|
||||
virtual/libelf
|
||||
)
|
||||
inotify? ( dev-libs/libevent )
|
||||
memkind? ( dev-libs/memkind )
|
||||
online? ( sys-cluster/synapse )
|
||||
opencl? ( dev-util/opencl-headers )
|
||||
openshmem? ( sys-cluster/SOS )
|
||||
peruse? ( sys-cluster/openmpi[peruse(-)] )
|
||||
sionlib? ( sys-cluster/sionlib:= )
|
||||
spectral? (
|
||||
sci-libs/fftw
|
||||
sys-cluster/spectral
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
java? ( virtual/jdk:1.8 )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
java? ( virtual/jre:1.8 )
|
||||
virtual/opencl
|
||||
"
|
||||
BDEPEND="
|
||||
sys-devel/binutils-config
|
||||
doc? (
|
||||
app-text/ghostscript-gpl
|
||||
dev-python/sphinx
|
||||
dev-tex/latexmk
|
||||
dev-texlive/texlive-latexextra
|
||||
)
|
||||
java? ( app-admin/chrpath )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.8.3-link-sionlib.patch"
|
||||
"${FILESDIR}/${P}-fix-pfm-linking.patch"
|
||||
)
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
|
||||
|| ( ${IUSE_INSTRUMENT//+/} )
|
||||
|
||||
java? ( pthread )
|
||||
"
|
||||
# aspectj? ( java )
|
||||
# cupti? ( cuda )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
java-pkg_clean
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export VARTEXFONTS="${T}/fonts"
|
||||
|
||||
local myconf=(
|
||||
--disable-mic
|
||||
--disable-pmapi
|
||||
--disable-static
|
||||
--enable-shared
|
||||
--without-cupti
|
||||
--without-gm
|
||||
--without-mx
|
||||
|
||||
--datadir="${T}"
|
||||
--datarootdir="${T}"
|
||||
--with-librt="${EPREFIX}/usr"
|
||||
--with-mpi="${EPREFIX}/usr"
|
||||
--with-papi="${EPREFIX}/usr"
|
||||
--with-unwind="${EPREFIX}/usr"
|
||||
|
||||
$(use_enable doc)
|
||||
$(use_enable heterogeneous)
|
||||
$(use_enable inotify)
|
||||
$(use_enable instrument_dynamic-memory)
|
||||
$(use_enable instrument_io)
|
||||
$(use_enable instrument_syscall)
|
||||
$(use_enable merge-in-trace)
|
||||
$(use_enable nanos)
|
||||
$(use_enable online)
|
||||
$(use_enable openmp)
|
||||
$(use_enable parallel-merge)
|
||||
$(use_enable pebs-sampling)
|
||||
$(use_enable peruse)
|
||||
$(use_enable posix-clock)
|
||||
$(use_enable pthread)
|
||||
$(use_enable sampling)
|
||||
$(use_enable single-mpi-lib)
|
||||
$(use_enable smpss)
|
||||
$(use_enable xml)
|
||||
)
|
||||
|
||||
use dlsym && myconf+=( "--with-pmpi-hook=dlsym" )
|
||||
|
||||
# if use aspectj; then
|
||||
# myconf+=( "--with-java-aspectj=${EPREFIX}/usr/share/aspectj/lib" )
|
||||
# myconf+=( "--with-java-aspectj-weaver=${EPREFIX}/usr/share/aspectj/lib" )
|
||||
# else
|
||||
myconf+=( "--without-java-aspectj-weaver" )
|
||||
myconf+=( "--without-java-aspectj" )
|
||||
# fi
|
||||
if use clustering; then
|
||||
myconf+=( "--with-clustering=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-clustering" )
|
||||
fi
|
||||
if use dyninst; then
|
||||
myconf+=( "--with-boost=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-dyninst=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-dyninst-headers=${EPREFIX}/usr/include/dyninst" )
|
||||
myconf+=( "--with-dwarf=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-elf=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-boost" )
|
||||
myconf+=( "--without-dyninst" )
|
||||
myconf+=( "--without-dwarf" )
|
||||
myconf+=( "--without-elf" )
|
||||
fi
|
||||
if use java; then
|
||||
myconf+=( "--with-java-jdk=$(java-config -O)" )
|
||||
else
|
||||
myconf+=( "--without-java-jdk" )
|
||||
fi
|
||||
if use memkind; then
|
||||
myconf+=( "--with-memkind=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-memkind" )
|
||||
fi
|
||||
if use online; then
|
||||
myconf+=( "--with-synapse=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-synapse" )
|
||||
fi
|
||||
if use opencl; then
|
||||
myconf+=( "--with-opencl=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-opencl" )
|
||||
fi
|
||||
if use openshmem; then
|
||||
myconf+=( "--with-openshmem=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-openshmem" )
|
||||
fi
|
||||
if use sionlib; then
|
||||
myconf+=( "--with-sionlib=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-sionlib-headers=${EPREFIX}/usr/include/sionlib" )
|
||||
fi
|
||||
if use spectral; then
|
||||
myconf+=( "--with-fft=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-spectral=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-fft" )
|
||||
myconf+=( "--without-spectral" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
#TODO: build examples
|
||||
|
||||
mkdir -p "${D}/$(python_get_sitedir)/" || die
|
||||
mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
|
||||
python_optimize "${D}/$(python_get_sitedir)/pyextrae"
|
||||
|
||||
#super-duper workaround
|
||||
mkdir -p "${ED}/usr/share/doc/${PF}" || die
|
||||
mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
|
||||
mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
|
||||
|
||||
if use doc ; then
|
||||
mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
|
||||
mv "${T}/man" "${ED}/usr/share/" || die
|
||||
docompress -x "/usr/share/doc/${PF}/html"
|
||||
fi
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
docompress -x "/usr/share/doc/${PF}/tests"
|
||||
|
||||
if use java; then
|
||||
chrpath -d "${ED}/usr/$(get_libdir)/libextrae-jvmti-agent.so" || die
|
||||
chrpath -d "${ED}/usr/$(get_libdir)/libjavatrace.so" || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.a' -delete || die
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
--- a/src/tracer/Makefile.am
|
||||
+++ b/src/tracer/Makefile.am
|
||||
@@ -631,6 +631,10 @@
|
||||
NEW_MPI_LIBS = -L@MPI_LIBSDIR@ @MPI_LIBS@ -static
|
||||
endif
|
||||
|
||||
+if HAVE_SIONLIB
|
||||
+SIONLIB_LINKER_FLAGS = @SIONLIB_LIBS@
|
||||
+endif
|
||||
+
|
||||
COMMON_LINKER_FLAGS = \
|
||||
-release $(PACKAGE_VERSION) \
|
||||
$(HWC_LINKER_FLAGS) \
|
||||
@@ -639,7 +643,8 @@
|
||||
$(XML2_LINKER_FLAGS) \
|
||||
$(LDL)\
|
||||
$(LIBZ_LINKER_FLAGS) \
|
||||
- $(MRNET_LINKER_FLAGS)
|
||||
+ $(MRNET_LINKER_FLAGS) \
|
||||
+ $(SIONLIB_LINKER_FLAGS)
|
||||
|
||||
libcudaompitrace_la_LDFLAGS = $(COMMON_LINKER_FLAGS)
|
||||
libcudaompitracef_la_LDFLAGS = $(COMMON_LINKER_FLAGS)
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -ru /var/tmp/portage/sys-cluster/extrae-4.0.1/work/extrae-4.0.1/src/cmd-line/Makefile.am extrae-4.0.1/src/cmd-line/Makefile.am
|
||||
--- /var/tmp/portage/sys-cluster/extrae-4.0.1/work/extrae-4.0.1/src/cmd-line/Makefile.am 2022-05-13 17:41:45.000000000 +0200
|
||||
+++ extrae-4.0.1/src/cmd-line/Makefile.am 2022-06-05 08:45:43.807262310 +0200
|
||||
@@ -11,7 +11,7 @@
|
||||
extrae_cmd_CFLAGS = -I$(INCLUDE_DIR) -I$(COMMON_INC) -I$(TRACER_INC) \
|
||||
-I$(TRACER_INC)/wrappers/API -I$(TRACER_INC)/clocks -I$(TRACER_INC)/hwc -O -g
|
||||
|
||||
-extrae_cmd_LDADD = $(TRACER_LIB)/libseqtrace.la $(MERGER_LIB)/libmpi2prv.la -lm
|
||||
+extrae_cmd_LDADD = $(TRACER_LIB)/libseqtrace.la $(MERGER_LIB)/libmpi2prv.la -lm @PAPI_LIBS@
|
||||
if HAVE_BINUTILS
|
||||
extrae_cmd_LDADD += $(BFD_LDFLAGS) $(BFD_RPATH) $(BFD_LIBS) $(LIBERTY_LDFLAGS) $(LIBERTY_RPATH) $(LIBERTY_LIBS)
|
||||
endif
|
||||
@@ -1,48 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A dynamic instrumentation package to trace programs compiled and run with the shared
|
||||
memory model (like OpenMP and pthreads), the message passing (MPI) programming model or
|
||||
both programming models (different MPI processes using OpenMP or pthreads within each MPI
|
||||
process). Extrae generates trace files that can be later visualized with sys-cluster/paraver.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bsc-performance-tools/extrae/issues</bugs-to>
|
||||
<remote-id type="github">bsc-performance-tools/extrae</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<!--<flag name="aspectj">Enable support for tracing Java through <pkg>dev-java/aspectj</pkg> (experimental)</flag>-->
|
||||
<flag name="clustering">Enable <pkg>sys-cluster/clusteringsuite</pkg> support</flag>
|
||||
<!--<flag name="cuda">Enable support for tracing CUDA calls on nVidia hardware and needs to point to the CUDA SDK installation path. This instrumentation is only valid in binaries that use the shared version of the CUDA library.</flag>-->
|
||||
<!--<flag name="cupti">CUPTI is used to instrument CUDA calls</flag>-->
|
||||
<flag name="doc">Generates the documentation of this instrumentation package</flag>
|
||||
<flag name="dlsym">Use dlsym instead of PMPI</flag>
|
||||
<flag name="dyninst">Build with <pkg>dev-libs/dyninst</pkg></flag>
|
||||
<flag name="heterogeneous">Enable support for heterogeneous tracing</flag>
|
||||
<flag name="inotify">Enable inotify support</flag>
|
||||
<flag name="java">Enable support for tracing Java. This is necessary to create the connectors between |TRACE| and Java applications.</flag>
|
||||
<flag name="memkind">Enable <pkg>dev-libs/memkind</pkg> support</flag>
|
||||
<flag name="merge-in-trace">Embed the merging process in the tracing library so the final tracefile can be generated automatically from the application run</flag>
|
||||
<flag name="nanos">Enable support for tracing <pkg>sys-cluster/nanos6</pkg> run-time</flag>
|
||||
<flag name="online">Enable on-line analysis</flag>
|
||||
<flag name="opencl">Enable support for tracing OpenCL</flag>
|
||||
<flag name="openmp">Enable support for tracing OpenMP</flag>
|
||||
<flag name="openshmem">OpenSHMEM to be used for the instrumentation package</flag>
|
||||
<flag name="parallel-merge">Build the parallel mergers (mpimpi2prv/mpimpi2dim) based on MPI</flag>
|
||||
<flag name="pebs-sampling">enable PEBS sampling</flag>
|
||||
<flag name="peruse">Enable gathering information with PerUse</flag>
|
||||
<flag name="posix-clock">Use POSIX clock (clock_gettime call) instead of low level timing routines. Use this option if the system where you install the instrumentation package modifies the frequency of its processors at runtime.</flag>
|
||||
<flag name="pthread">Enable support for tracing pthread library</flag>
|
||||
<flag name="sampling">Enable <pkg>dev-libs/papi</pkg> sampling support</flag>
|
||||
<flag name="spectral">This package enables support for on-line <pkg>sys-cluster/spectral</pkg> analysis.</flag>
|
||||
<flag name="single-mpi-lib">Produces a single instrumentation library for MPI that contains both Fortran and C wrappers. Applications that call the MPI library from both C and Fortran languages need this flag to be enabled.</flag>
|
||||
<flag name="sionlib">Enable support for <pkg>sys-cluster/sionlib</pkg></flag>
|
||||
<flag name="smpss">Enable support for tracing SMP-superscalar</flag>
|
||||
<flag name="xml">Enable support for XML configuration</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST mrnet-5.0.1_p20180510.tar.gz 809277 BLAKE2B c3465db9977f133994d9d8aa619d50e8bbf03f4d17b04ed4f0bdfdbd185fbf9b3c74f63de458cfebc79493228a9243c08c95333ae30ef2a19c01625c77e94408 SHA512 e190cf0b291a0fdebd7ff8449ea1cf0ef5bbda4c1ec4af8341db18fdcd1407ace428dc2a527d004987dc4171a82b4db2cfa34534695e3ec67c519523058915a2
|
||||
@@ -1,20 +0,0 @@
|
||||
--- a/conf/configure.in
|
||||
+++ b/conf/configure.in
|
||||
@@ -66,7 +66,6 @@
|
||||
AC_PROG_YACC
|
||||
AC_PROG_LN_S
|
||||
|
||||
-AC_PATH_PROG(AR, ar)
|
||||
ARFLAGS="crv"
|
||||
AC_SUBST(AR)
|
||||
AC_SUBST(ARFLAGS)
|
||||
@@ -87,9 +86,6 @@
|
||||
STDCFLAGS="-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS"
|
||||
CXXFLAGS="$CXXFLAGS -fPIC $STDCFLAGS"
|
||||
|
||||
-dnl === Ignore user-requested debug/optimization levels
|
||||
-CXXFLAGS=`echo $CXXFLAGS | sed 's/-g //; s/-O //; s/-O1 //; s/-O2 //; s/-O3 //'`
|
||||
-
|
||||
SOFLAGS="$SOFLAGS -fPIC -shared -rdynamic"
|
||||
AC_SUBST(SOFLAGS)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/conf/Makefile.in
|
||||
+++ b/conf/Makefile.in
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
libi-prep:
|
||||
@echo Creating Pre-Install directories ...
|
||||
- for dir in $(OBJDIR) $(DEPDIR) ; do \
|
||||
+ for dir in $(OBJDIR) $(DEPDIR) $(LIBDIR) ; do \
|
||||
if [ ! -d $$dir ] ; then \
|
||||
$(MKDIR_P) $$dir ; \
|
||||
chmod 755 $$dir ; \
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/conf/Makefile.in
|
||||
+++ b/conf/Makefile.in
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
$(LIBLIBI_SO): libi-prep $(LIBI_OBJS)
|
||||
@echo Creating LIBI SO ...
|
||||
- $(CXX) $(SOFLAGS) -o $(LIBDIR)/liblibi.so $(LIBI_OBJS) -L$(LIBDIR) -lxplat
|
||||
+ $(CXX) $(SOFLAGS) -o $(LIBDIR)/liblibi.so $(LIBI_OBJS) -L$(LIBDIR) -lxplat $(LMON_LIBS)
|
||||
|
||||
# Default Rules
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/conf/Makefile.in
|
||||
+++ b/conf/Makefile.in
|
||||
@@ -115,7 +115,7 @@
|
||||
|
||||
$(LIBLIBI_SO): libi-prep $(LIBI_OBJS)
|
||||
@echo Creating LIBI SO ...
|
||||
- $(CXX) $(SOFLAGS) -o $(LIBDIR)/liblibi.so $(LIBI_OBJS) -L$(LIBDIR) -lxplat $(LMON_LIBS)
|
||||
+ $(CXX) $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -Wl,-soname,liblibi.so -o $(LIBDIR)/liblibi.so $(LIBI_OBJS) -L$(LIBDIR) -lxplat $(LMON_LIBS)
|
||||
|
||||
# Default Rules
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
COMMIT="7375ba5bb0df87c68e58ad15e9e5e351ae020c08"
|
||||
|
||||
DESCRIPTION="A framework for bootstrapping extreme scale software systems"
|
||||
HOMEPAGE="http://www.paradyn.org/mrnet/"
|
||||
SRC_URI="https://github.com/dyninst/mrnet/archive/${COMMIT}.tar.gz -> ${P/libi/mrnet}.tar.gz"
|
||||
S="${WORKDIR}/mrnet-${COMMIT}/external/libi"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="slurm"
|
||||
|
||||
RDEPEND="
|
||||
sys-cluster/launchmon
|
||||
sys-cluster/mrnet
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
slurm? ( sys-cluster/slurm )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-create-libdir.patch"
|
||||
"${FILESDIR}/${PN}-link-launchmon.patch"
|
||||
"${FILESDIR}/${PN}-shared-library.patch"
|
||||
"${FILESDIR}/${P}-respect-variables.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
tc-export AR
|
||||
default
|
||||
pushd conf || die
|
||||
mv configure.{in,ac} || die
|
||||
eautoreconf
|
||||
popd || die
|
||||
mv conf/configure configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-shared
|
||||
--with-launchmon="${EPREFIX}/usr"
|
||||
--with-xplat="${EPREFIX}/usr"
|
||||
)
|
||||
|
||||
use slurm && myconf+=( "--with-libi-startup=slurm" )
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so ../../build/*/lib/liblibi.so
|
||||
insinto /usr/include
|
||||
doins -r include/libi
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="slurm">Use slurm as tree instantiation method instead of ssh</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/dyninst/mrnet/issues</bugs-to>
|
||||
<remote-id type="github">dyninst/mrnet</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST libyogrt-1.27.tar.gz 43479 BLAKE2B 75120f6af932c75efc80acb75f0b73ddeb56e348820e0a20d3597a61143fca654a215b5c61503c4e354d607736497a9c6109239c9b5a16ca35290383163b2927 SHA512 7a23a05fec70206449618feeeee21eb8f0c55900fbd824e3c60cf54f2cb632e263696fa72e4d1a609160edb1b44585f87ca3efbde54ca352eb92a1d06f718ffb
|
||||
DIST libyogrt-1.28.tar.gz 43836 BLAKE2B 513ad30b496088cba25f853a9305628bef9d7b3da78e7415f64985cad00614a315fcfef5fa3d3206fb3bede72717cd044ea7aa05224577b2859130f2d54162e0 SHA512 7720224f8324f8761a4c10f9f7fc312c9270e2f6886761475e93d873f9160698f6fd206b630341e2d552f7e8b564ede13543f148348d2b5317165c8a88928454
|
||||
@@ -1,38 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Your One Get Remaining Time library"
|
||||
HOMEPAGE="https://github.com/LLNL/libyogrt"
|
||||
SRC_URI="https://github.com/LLNL/libyogrt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="slurm"
|
||||
|
||||
RDEPEND="slurm? ( sys-cluster/slurm )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#TODO: flux
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
AT_M4DIR="config" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
use slurm && myconf+=( "--with-slurm=${EPREFIX}/usr" )
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Your One Get Remaining Time library"
|
||||
HOMEPAGE="https://github.com/LLNL/libyogrt"
|
||||
SRC_URI="https://github.com/LLNL/libyogrt/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="slurm"
|
||||
|
||||
RDEPEND="slurm? ( sys-cluster/slurm )"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#TODO: flux
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
AT_M4DIR="config" eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
use slurm && myconf+=( "--with-slurm=${EPREFIX}/usr" )
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
This library provides functions to query a resource manager for the time remaining in a job.
|
||||
It supports:
|
||||
LCRM
|
||||
LSF
|
||||
MOAB
|
||||
SLURM
|
||||
AIX w/ SLURM
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="slurm">Add support for the slurm resource manager</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/LLNL/libyogrt/issues</bugs-to>
|
||||
<remote-id type="github">LLNL/libyogrt</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST mcxx-2021.06.tar.gz 6363578 BLAKE2B 235dc2794814088d011b8c23031cd4e4727e2a76e98b099786501746912724b9ead20ee9653e732b60ae130df9eabff265763d2eb45e704f069385aca385931e SHA512 acf33bca00837687a8ad99163afbc6547341c3202148a79f766914ee22766aec7483d12e19f4d52c508898765ef24047f7c924ceda02a7efa32e270c3323bafb
|
||||
@@ -1,157 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOCS_BUILDER="doxygen"
|
||||
DOCS_DIR="doc"
|
||||
DOCS_CONFIG_NAME="doxygen_tl.in"
|
||||
MYPV="github-release-${PV}"
|
||||
PYTHON_COMPAT=( python3_{10..11} pypy3 )
|
||||
|
||||
inherit autotools flag-o-matic fortran-2 python-any-r1 docs
|
||||
|
||||
DESCRIPTION="C/C++/Fortran source-to-source compilation aimed at fast prototyping"
|
||||
HOMEPAGE="https://github.com/bsc-pm/mcxx"
|
||||
SRC_URI="https://github.com/bsc-pm/mcxx/archive/refs/tags/${MYPV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MYPV}"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="+analysis array-descriptors bison-reporting examples extrae +mpi +nanox ompss ompss2 +opencl openmp +quad tcl test tl-openmp-gomp tl-openmp-profile vectorization"
|
||||
|
||||
CDEPEND="
|
||||
dev-db/sqlite
|
||||
extrae? ( sys-cluster/extrae )
|
||||
mpi? ( virtual/mpi )
|
||||
nanox? ( sys-cluster/nanox )
|
||||
ompss2? ( sys-cluster/nanos6 )
|
||||
tcl? ( sys-cluster/TCL )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? ( dev-util/opencl-headers )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
opencl? ( virtual/opencl )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-util/gperf
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig
|
||||
app-alternatives/yacc
|
||||
|
||||
test? (
|
||||
sys-devel/bc
|
||||
app-alternatives/awk
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
mpi? ( nanox )
|
||||
ompss? ( nanox )
|
||||
opencl? ( nanox )
|
||||
openmp? ( nanox )
|
||||
|
||||
!analysis? ( !vectorization )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
fortran-2_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/bsc-pm/mcxx/issues/36
|
||||
filter-ldflags -Wl,--as-needed
|
||||
|
||||
local myconf=(
|
||||
--disable-cray-compilers
|
||||
--disable-distcheck-processing
|
||||
--disable-ibm-compilers
|
||||
--disable-intel-compilers
|
||||
--disable-pgi-compilers
|
||||
--disable-mic
|
||||
--disable-mic-testing
|
||||
--disable-nanox-cuda-device
|
||||
--disable-nanox-fpga-device
|
||||
|
||||
--enable-bison-regeneration
|
||||
--enable-file-regeneration
|
||||
--enable-flex-regeneration
|
||||
--enable-gperf-regeneration
|
||||
--enable-shared
|
||||
|
||||
--without-intel-omp
|
||||
--without-nanox-mic
|
||||
--without-svml
|
||||
|
||||
$(use_enable analysis)
|
||||
$(use_enable array-descriptors gfortran-8-or-greater-array-descriptors )
|
||||
$(use_enable bison-reporting)
|
||||
$(use_enable examples tl-examples)
|
||||
$(use_enable extrae)
|
||||
$(use_enable mpi nanox-mpi-device)
|
||||
$(use_enable ompss)
|
||||
$(use_enable ompss2 ompss-2)
|
||||
$(use_enable opencl nanox-opencl-device)
|
||||
$(use_enable openmp)
|
||||
$(use_enable quad float128)
|
||||
$(use_enable quad int128)
|
||||
$(use_enable test fortran-tests)
|
||||
$(use_enable tl-openmp-gomp)
|
||||
$(use_enable tl-openmp-profile)
|
||||
$(use_enable vectorization)
|
||||
)
|
||||
|
||||
if use extrae; then
|
||||
myconf+=( "--with-extrae=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-extrae-lib=${EPREFIX}/usr/$(get_libdir)" )
|
||||
else
|
||||
myconf+=( "--without-extrae" )
|
||||
fi
|
||||
if use mpi; then
|
||||
myconf+=( "--with-mpi=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-mpi" )
|
||||
fi
|
||||
if use nanox; then
|
||||
myconf+=( "--with-nanox=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-nanox" )
|
||||
fi
|
||||
if use ompss2; then
|
||||
myconf+=( "--with-nanos6=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-nanos6-lib=${EPREFIX}/usr/$(get_libdir)" )
|
||||
else
|
||||
myconf+=( "--without-nanos6" )
|
||||
fi
|
||||
if use tcl; then
|
||||
myconf+=( "--with-tcl=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-tcl-lib=${EPREFIX}/usr/$(get_libdir)" )
|
||||
else
|
||||
myconf+=( "--without-tcl" )
|
||||
fi
|
||||
|
||||
use tl-openmp-gomp && myconf+=( "--with-gomp=${EPREFIX}/usr" )
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
einstalldocs
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Mercurium is a C/C++/Fortran source-to-source compilation infrastructure aimed at fast prototyping developed by the Programming Models group at the Barcelona Supercomputing Center.
|
||||
Mercurium is used, together with the Nanos++ Runtime Library, to implement the OmpSs programming model. Both tools provide also an implementation of OpenMP 3.1. More recently, Mercurium has been also used to implement the OmpSs-2 programming model together with the Nanos6 Runtime Library.
|
||||
Apart from that, since Mercurium is quite extensible it has been used to implement other programming models or compiler transformations, examples include Cell Superscalar, Software Transactional Memory, Distributed Shared Memory or the ACOTES project, just to name a few.
|
||||
Extending Mercurium is achieved using a plugin architecture, where plugins represent several phases of the compiler. These plugins are written in C++ and dynamically loaded by the compiler according to the chosen profile configuration. Code transformations can be implemented in terms of source code (there is no need to modify or know the internal syntactic representation of the compiler).
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">bsc-pm/mcxx</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="analysis">Enables analysis phase</flag>
|
||||
<flag name="array-descriptors">Enable GNU Fortran compiler > 8 array descriptors</flag>
|
||||
<flag name="bison-reporting">Use this when debugging bison grammars</flag>
|
||||
<flag name="examples">Build and install TL example phases</flag>
|
||||
<flag name="extrae">Enables Extrae instrumentation of Mercurium itself</flag>
|
||||
<flag name="mpi">Enables the MPI Nanos++ Lowering phase in Mercurium</flag>
|
||||
<flag name="nanox">Enables support for Nanos++</flag>
|
||||
<flag name="ompss">Enables support of OmpSs Programming Model using Nanos++</flag>
|
||||
<flag name="ompss2">Enables support of OmpSs-2 using Nanos6</flag>
|
||||
<flag name="opencl">Enables the OpenCL Nanos++ Lowering phase in Mercurium</flag>
|
||||
<flag name="openmp">Enables support of OpenMP using Nanos++</flag>
|
||||
<flag name="quad">Enables support for __float128 and __int128. It also enables REAL(KIND=16) and INTEGER(KIND=16) in Fortran</flag>
|
||||
<flag name="tcl">Enable support for Transparent Checkpoint Library</flag>
|
||||
<flag name="tl-openmp-gomp">Enables support of OpenMP TL for GOMP (EXPERIMENTAL and UNSUPPORTED)</flag>
|
||||
<flag name="tl-openmp-profile">Enables support of OpenMP profile mode</flag>
|
||||
<flag name="vectorization">Enables Vectorization phase</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1 +0,0 @@
|
||||
DIST mrnet-5.0.1_p20180510.tar.gz 809277 BLAKE2B c3465db9977f133994d9d8aa619d50e8bbf03f4d17b04ed4f0bdfdbd185fbf9b3c74f63de458cfebc79493228a9243c08c95333ae30ef2a19c01625c77e94408 SHA512 e190cf0b291a0fdebd7ff8449ea1cf0ef5bbda4c1ec4af8341db18fdcd1407ace428dc2a527d004987dc4171a82b4db2cfa34534695e3ec67c519523058915a2
|
||||
@@ -1,53 +0,0 @@
|
||||
--- a/conf/configure.in
|
||||
+++ b/conf/configure.in
|
||||
@@ -215,10 +215,6 @@
|
||||
CXXFLAGS="$CXXFLAGS $STDCFLAGS"
|
||||
CFLAGS="$CFLAGS $STDCFLAGS"
|
||||
|
||||
-dnl === Ignore user-requested debug/optimization levels
|
||||
-CXXFLAGS=`echo $CXXFLAGS | sed 's/-g //; s/-O //; s/-O1 //; s/-O2 //; s/-O3 //'`
|
||||
-CFLAGS=`echo $CFLAGS | sed 's/-g //; s/-O //; s/-O1 //; s/-O2 //; s/-O3 //'`
|
||||
-
|
||||
dnl === SETTING MRNET PLATFORM VARIABLES ===
|
||||
|
||||
dnl MRNET_ARCH is host returned by config.guess with
|
||||
@@ -275,7 +271,6 @@
|
||||
|
||||
C_AS_CPLUSPLUS="-x c++"
|
||||
|
||||
- AC_PATH_PROG(AR, ar)
|
||||
AC_SUBST(AR)
|
||||
ARFLAGS="crv"
|
||||
AC_SUBST(ARFLAGS)
|
||||
@@ -292,7 +287,6 @@
|
||||
|
||||
C_AS_CPLUSPLUS="-x c++"
|
||||
|
||||
- AC_PATH_PROG(AR, ar)
|
||||
AC_SUBST(AR)
|
||||
ARFLAGS="crv"
|
||||
AC_SUBST(ARFLAGS)
|
||||
@@ -306,7 +300,6 @@
|
||||
|
||||
C_AS_CPLUSPLUS="-+"
|
||||
|
||||
- AC_PATH_PROG(AR, ar)
|
||||
AC_SUBST(AR)
|
||||
ARFLAGS="crv"
|
||||
AC_SUBST(ARFLAGS)
|
||||
@@ -342,7 +334,6 @@
|
||||
|
||||
SOFLAGS="$SOFLAGS -fPIC -shared"
|
||||
|
||||
- AC_PATH_PROG(AR, ar)
|
||||
AC_SUBST(AR)
|
||||
ARFLAGS="crv"
|
||||
AC_SUBST(ARFLAGS)
|
||||
@@ -357,7 +348,6 @@
|
||||
|
||||
SOFLAGS="$SOFLAGS -fPIC -shared"
|
||||
|
||||
- AC_PATH_PROG(AR, ar)
|
||||
AC_SUBST(AR)
|
||||
ARFLAGS="crv"
|
||||
AC_SUBST(ARFLAGS)
|
||||
@@ -1,133 +0,0 @@
|
||||
--- a/conf/Makefile.in
|
||||
+++ b/conf/Makefile.in
|
||||
@@ -497,7 +497,7 @@
|
||||
|
||||
$(LIBMRNET_SO): $(LIBMRNET_OBJS) $(LIBXPLAT_SO)
|
||||
@echo Building `basename $@` ...
|
||||
- $(CXX) -Wl,-soname,$(LIBMRNET_SONAME) $(SOFLAGS) -o $@ $(LIBMRNET_OBJS) $(LIBMRNET_SO_DEPLIBS)
|
||||
+ $(CXX) -Wl,-soname,$(LIBMRNET_SONAME) $(SOFLAGS) $(LDFLAGS) -o $@ $(LIBMRNET_OBJS) $(LIBMRNET_SO_DEPLIBS)
|
||||
|
||||
$(LIBXPLAT): xplat-all
|
||||
|
||||
@@ -556,7 +556,7 @@
|
||||
|
||||
$(LIBDIR)/test_DynamicFilters.so: $(TSTDIR)/test_DynamicFilters.C
|
||||
@echo "Building `basename $@` ..."
|
||||
- $(CXX) $(CXXFLAGS) $(SOFLAGS) -o $@ $(TSTDIR)/test_DynamicFilters.C
|
||||
+ $(CXX) $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -o $@ $(TSTDIR)/test_DynamicFilters.C
|
||||
|
||||
$(BINDIR)/test_Recovery_FE: $(BINDIR)/%: $(CNDEP) $(OBJDIR)/%.o \
|
||||
$(OBJDIR)/test_Recovery.o \
|
||||
@@ -578,7 +578,7 @@
|
||||
|
||||
$(LIBDIR)/test_RecoveryFilter.so: $(TSTDIR)/test_Recovery/test_RecoveryFilter.C
|
||||
@echo "Building `basename $@` ..."
|
||||
- $(CXX) $(CXXFLAGS) $(SOFLAGS) -o $@ $(TSTDIR)/test_Recovery/test_RecoveryFilter.C
|
||||
+ $(CXX) $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -o $@ $(TSTDIR)/test_Recovery/test_RecoveryFilter.C
|
||||
|
||||
#################################
|
||||
# Cleaning rules
|
||||
--- a/conf/Makefile.ltwt.in
|
||||
+++ b/conf/Makefile.ltwt.in
|
||||
@@ -101,11 +101,11 @@
|
||||
|
||||
$(TARGET_SO): $(LTWT_OBJS)
|
||||
@echo Building `basename $@` ...
|
||||
- $(CC) -Wl,-soname,$(TARGET_SONAME) $(SOFLAGS) -o $@ $^ $(TARGET_SO_DEPLIBS)
|
||||
+ $(CC) -Wl,-soname,$(TARGET_SONAME) $(SOFLAGS) $(LDFLAGS) -o $@ $^ $(TARGET_SO_DEPLIBS)
|
||||
|
||||
$(TARGET_SO_LOWFAT): $(LOWFAT_OBJS)
|
||||
@echo Building `basename $@` ...
|
||||
- $(CC) -Wl,-soname,$(TARGET_SONAME_LOWFAT) $(SOFLAGS) -o $@ $^ $(TARGET_SO_LOWFAT_DEPLIBS)
|
||||
+ $(CC) -Wl,-soname,$(TARGET_SONAME_LOWFAT) $(SOFLAGS) $(LDFLAGS) -o $@ $^ $(TARGET_SO_LOWFAT_DEPLIBS)
|
||||
|
||||
install-prep:
|
||||
for dir in $(ILIBDIR) $(install_INCDIR) $(install_libincdir) ; do \
|
||||
--- a/Examples/FaultRecovery/Makefile
|
||||
+++ b/Examples/FaultRecovery/Makefile
|
||||
@@ -24,7 +24,7 @@
|
||||
$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ FaultRecovery_BE_lightweight.c $(LIBS_LIGHTWEIGHT)
|
||||
|
||||
$(LIBDIR)/FaultRecoveryFilter.so: FaultRecoveryFilter.C
|
||||
- $(CXX) $(CXXFLAGS) $(SOFLAGS) -o $@ FaultRecoveryFilter.C
|
||||
+ $(CXX) $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -o $@ FaultRecoveryFilter.C
|
||||
|
||||
clean:
|
||||
$(RM) -f $(TARGETS) $(TARGETS_SO)
|
||||
--- a/Examples/HeterogeneousFilters/Makefile
|
||||
+++ b/Examples/HeterogeneousFilters/Makefile
|
||||
@@ -21,7 +21,7 @@
|
||||
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ HeteroFilters_BE.C $(LIBS)
|
||||
|
||||
$(LIBDIR)/HeteroFilters.so: HeteroFilters.C
|
||||
- $(CXX) $(CXXFLAGS) $(SOFLAGS) -o $@ HeteroFilters.C
|
||||
+ $(CXX) $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -o $@ HeteroFilters.C
|
||||
|
||||
clean:
|
||||
$(RM) -f $(TARGETS) $(TARGETS_SO)
|
||||
--- a/Examples/IntegerAddition/Makefile
|
||||
+++ b/Examples/IntegerAddition/Makefile
|
||||
@@ -40,7 +40,7 @@
|
||||
$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ IntegerAddition_BE_lightweight.c $(LIBS_LIGHTWEIGHT)
|
||||
|
||||
$(LIBDIR)/IntegerAdditionFilter.so: IntegerAdditionFilter.C
|
||||
- $(CXX) $(CXXFLAGS) $(SOFLAGS) -o $@ IntegerAdditionFilter.C
|
||||
+ $(CXX) $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -o $@ IntegerAdditionFilter.C
|
||||
|
||||
clean:
|
||||
$(RM) -f $(TARGETS) $(TARGETS_SO)
|
||||
--- a/Examples/PerformanceData/Makefile
|
||||
+++ b/Examples/PerformanceData/Makefile
|
||||
@@ -24,7 +24,7 @@
|
||||
$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ BE_lightweight.c $(LIBS_LIGHTWEIGHT)
|
||||
|
||||
$(LIBDIR)/PerfDataFilter.so: PerfDataFilter.C
|
||||
- $(CXX) $(CXXFLAGS) $(SOFLAGS) -o $@ PerfDataFilter.C
|
||||
+ $(CXX) $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -o $@ PerfDataFilter.C
|
||||
|
||||
clean:
|
||||
$(RM) -f $(TARGETS) $(TARGETS_SO)
|
||||
--- a/Examples/PerThreadStreams/Makefile
|
||||
+++ b/Examples/PerThreadStreams/Makefile
|
||||
@@ -27,7 +27,7 @@
|
||||
$(CC) -g $(CCFLAGS) $(LDFLAGS) -o $@ PerThreadStreams_BE_lightweight.c $(LIBS_LOWFAT)
|
||||
|
||||
$(LIBDIR)/PerThreadStreamsFilter.so: PerThreadStreamsFilter.C
|
||||
- $(CXX) -g $(CXXFLAGS) $(SOFLAGS) -o $@ PerThreadStreamsFilter.C
|
||||
+ $(CXX) -g $(CXXFLAGS) $(SOFLAGS) $(LDFLAGS) -o $@ PerThreadStreamsFilter.C
|
||||
|
||||
clean:
|
||||
$(RM) -f $(TARGETS) $(TARGETS_SO)
|
||||
--- a/xplat/conf/Makefile.in
|
||||
+++ b/xplat/conf/Makefile.in
|
||||
@@ -1,4 +1,4 @@
|
||||
-#/****************************************************************************
|
||||
+# ****************************************************************************
|
||||
# * Copyright © 2003-2012 Dorian C. Arnold, Philip C. Roth, Barton P. Miller *
|
||||
# * Detailed MRNet usage rights in "LICENSE" file. *
|
||||
# ****************************************************************************/
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
$(TARGET_SO): $(XPLAT_OBJS)
|
||||
@echo Building `basename $@` ...
|
||||
- $(CXX) -Wl,-soname,$(TARGET_SONAME) $(SOFLAGS) -o $@ $(XPLAT_OBJS) $(TARGET_SO_DEPLIBS)
|
||||
+ $(CXX) -Wl,-soname,$(TARGET_SONAME) $(SOFLAGS) $(LDFLAGS) -o $@ $(XPLAT_OBJS) $(TARGET_SO_DEPLIBS)
|
||||
|
||||
install-prep:
|
||||
for dir in $(ILIBDIR) $(install_INCDIR) $(install_LIBINCDIR) ; do \
|
||||
--- a/xplat/conf/Makefile.ltwt.in
|
||||
+++ b/xplat/conf/Makefile.ltwt.in
|
||||
@@ -95,11 +95,11 @@
|
||||
|
||||
$(TARGET_SO): $(XPLAT_LTWT_OBJS)
|
||||
@echo Building `basename $@` ...
|
||||
- $(CC) -Wl,-soname,$(TARGET_SONAME) $(SOFLAGS) -o $@ $^ $(TARGET_SO_LIBS)
|
||||
+ $(CC) -Wl,-soname,$(TARGET_SONAME) $(SOFLAGS) $(LDFLAGS) -o $@ $^ $(TARGET_SO_LIBS)
|
||||
|
||||
$(TARGET_SO_LOWFAT): $(XPLAT_LOWFAT_OBJS)
|
||||
@echo Building `basename $@` ...
|
||||
- $(CC) -Wl,-soname,$(TARGET_SONAME_LOWFAT) $(SOFLAGS) -o $@ $^ $(TARGET_SO_LOWFAT_LIBS)
|
||||
+ $(CC) -Wl,-soname,$(TARGET_SONAME_LOWFAT) $(SOFLAGS) $(LDFLAGS) -o $@ $^ $(TARGET_SO_LOWFAT_LIBS)
|
||||
|
||||
install-prep:
|
||||
for dir in $(ILIBDIR) $(install_INCDIR) $(install_LIBINCDIR) ; do \
|
||||
@@ -1,32 +0,0 @@
|
||||
--- a/conf/Makefile.in
|
||||
+++ b/conf/Makefile.in
|
||||
@@ -191,8 +191,8 @@
|
||||
|
||||
|
||||
LIBI_TARGETS =
|
||||
-LIBLIBI = $(LIBDIR)/liblibi.a
|
||||
-LIBLIBI_SO = $(LIBDIR)/liblibi.so
|
||||
+LIBLIBI =
|
||||
+LIBLIBI_SO =
|
||||
ifeq ($(MRNET_STARTUP_METHOD),libi)
|
||||
LIBI_TARGETS = $(LIBLIBI)
|
||||
ifeq ($(BUILD_SHARED_LIBS), yes)
|
||||
@@ -388,9 +388,6 @@
|
||||
|
||||
INSTALL_PREREQ = install-prep
|
||||
INSTALL_PREREQ += xplat-install xplat_lightweight-install
|
||||
-ifeq ($(MRNET_STARTUP_METHOD),libi)
|
||||
- INSTALL_PREREQ += libi-install
|
||||
-endif
|
||||
INSTALL_PREREQ += install-local lightweight-install
|
||||
|
||||
install: $(INSTALL_PREREQ)
|
||||
@@ -511,7 +508,7 @@
|
||||
|
||||
$(LIBXPLAT_LIGHTWEIGHT_SO): xplat_lightweight-sharedobj
|
||||
|
||||
-$(LIBI_TARGETS): libi-all
|
||||
+$(LIBI_TARGETS):
|
||||
|
||||
$(LIBLMON):
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
MRNet is a customizable, high-performance software infrastructure for
|
||||
building scalable tools and applications. It supports efficient
|
||||
multicast and data aggregation functionality using a tree of processes
|
||||
between the tool's front-end and back-ends. MRNet-based tools may use
|
||||
these internal processes to distribute many important tool activities,
|
||||
for example to reduce data analysis time and keep tool front-end loads
|
||||
manageable.
|
||||
|
||||
MRNet-based tool components communicate across logical channels called
|
||||
streams. At MRNet internal processes, filters are bound to these streams to
|
||||
synchronize and aggregate dataflows. Using filters, MRNet can efficiently
|
||||
compute averages, sums, and other more complex aggregations and analyses
|
||||
on tool data. MRNet also supports facilities that allow tool developers
|
||||
dynamically load new tool-specific filters into the system.
|
||||
|
||||
Features:
|
||||
* Flexible tool organization: MRNet does not dictate the organization of
|
||||
MRNet and tool processes, so MRNet-based tools can tailor MRNet's
|
||||
configuration to the requirements of the tool and its target environment.
|
||||
|
||||
* Scalable, flexible data aggregation: MRNet provides a set of built-in
|
||||
filters for traditional data aggregation operations like averages, sums,
|
||||
and data concatenation. MRNet also supports custom, dynamically-loaded
|
||||
filters for tool-specific aggregations.
|
||||
|
||||
* High-bandwidth communication: Internally, MRNet transfers data using an
|
||||
efficient, packed binary representation. Zero-copy data paths are used
|
||||
whenever possible to reduce data transfer latency.
|
||||
|
||||
* Scalable multicast: MRNet supports efficient multicast to reduce the cost
|
||||
of delivering tool control messages to tool back-ends.
|
||||
|
||||
* Multiple concurrent data channels: MRNet supports multiple logical
|
||||
channels of data between tool components. Multiple aggregation and
|
||||
multicast operations may be in progress simultaneously.
|
||||
|
||||
* Open source licensing.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="libi">Use libi as tree instantiation method instead of ssh</flag>
|
||||
<flag name="threadsafe">Build threasafe version of lightweight MRNet and XPlat libraries</flag>
|
||||
<flag name="slurm">Use slurm as libi tree instantiation method instead of ssh</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/dyninst/mrnet/issues</bugs-to>
|
||||
<remote-id type="github">dyninst/mrnet</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,86 +0,0 @@
|
||||
# Copyright 2019-2028 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
COMMIT="7375ba5bb0df87c68e58ad15e9e5e351ae020c08"
|
||||
|
||||
inherit autotools flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="A Multicast/Reduction Network"
|
||||
HOMEPAGE="http://www.paradyn.org/mrnet"
|
||||
SRC_URI="https://github.com/dyninst/mrnet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="libi slurm threadsafe"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/boost:=
|
||||
libi? (
|
||||
sys-cluster/launchmon
|
||||
sys-cluster/libi
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
slurm? ( sys-cluster/slurm )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-respect-AR-CFLAGS.patch"
|
||||
"${FILESDIR}/${P}-respect-LDFLAGS.patch"
|
||||
"${FILESDIR}/${PN}-no-libi.patch"
|
||||
)
|
||||
REQUIRED_USE="slurm? ( libi )"
|
||||
|
||||
src_prepare() {
|
||||
tc-export AR CC CXX
|
||||
rm -r external || die
|
||||
default
|
||||
pushd conf || die
|
||||
mv configure.{in,ac} || die
|
||||
eautoreconf
|
||||
popd || die
|
||||
mv conf/configure configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use libi && append-cxxflags "-llibi"
|
||||
local myconf=(
|
||||
--enable-shared
|
||||
--enable-verbosebuild
|
||||
--with-boost="${EPREFIX}/usr"
|
||||
|
||||
$(use_enable threadsafe ltwt-threadsafe)
|
||||
)
|
||||
|
||||
if use libi; then
|
||||
myconf+=( "--with-launchmon=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-libi=${EPREFIX}/usr" )
|
||||
myconf+=( "--with-startup=libi" )
|
||||
use slurm && myconf+=( "--with-libi-startup=slurm" )
|
||||
else
|
||||
myconf+=( "--without-launchmon" )
|
||||
myconf+=( "--without-libi" )
|
||||
myconf+=( "--with-startup=ssh" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
MAKEOPTS="-j1" emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dolib.so build/*/lib/*.so*
|
||||
dobin build/*/bin/*
|
||||
insinto /usr/include
|
||||
doins -r xplat/include/*
|
||||
doins -r include/mrnet*
|
||||
doheader build/*/*.h
|
||||
dodoc README ACKNOWLEDGMENTS
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST nanos6-2.6.tar.gz 739246 BLAKE2B 4a5cb079b09fe2eaa40ee4064307dfc8facf1515801c6ddfe34b301b6c48df167a3603435e3998f28511738709e53d7245421bcdda69829268b7f86748d3de87 SHA512 af6e95f2d523a22b033f380efd4c36d44d85708b7852f692dc700c89dcca12405882d09437d672f06ffd0dbe429bc1e2f52f86e148882d254f7a3d8f8221b222
|
||||
DIST nanos6-2.7.tar.gz 738537 BLAKE2B f95906c848b96c9bc8d03b9fa43440e7cf7b5df0d64183b28e0cac3eae45af8b1504b29696931c9ded48f345eaeae0c447715a87f2fec6bfee8254941628f376 SHA512 4e1bb8bfdab888f7f68b30fb7d69a30f6d2b03577e7bfe2d85631c644ba7ac628918dff6b87100c16a3603fade5cdb511575575ee01a5bc1b1782c46a75cadca
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/src/hardware-counters/pqos/PQoSHardwareCounters.cpp
|
||||
+++ b/src/hardware-counters/pqos/PQoSHardwareCounters.cpp
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <sys/utsname.h>
|
||||
+#include <string>
|
||||
|
||||
#include "PQoSHardwareCounters.hpp"
|
||||
#include "PQoSTaskHardwareCounters.hpp"
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bsc-pm/nanos6/issues</bugs-to>
|
||||
<remote-id type="github">bsc-pm/nanos6</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="ctf2prv">Build ctf2prv fast converter</flag>
|
||||
<!--<flag name="cuda">enable CUDA</flag>-->
|
||||
<flag name="debug">enable extra assertions and checks in debug - may cause significant slowdown</flag>
|
||||
<flag name="dependency-delayed-operations">Delay dependency update operations</flag>
|
||||
<flag name="dlb">enable dynamic management and sharing of computing resources</flag>
|
||||
<flag name="execution-workflow">Enable execution using the Execution Workflow</flag>
|
||||
<flag name="extrae">to generate execution traces for offline performance analysis with paraver</flag>
|
||||
<flag name="memkind">Add support for <pkg>dev-libs/memkind</pkg> in memory allocator</flag>
|
||||
<flag name="mercurium">Enable <pkg>sys-cluster/mcxx</pkg> support</flag>
|
||||
<flag name="papi">enable <pkg>dev-libs/papi</pkg> support</flag>
|
||||
<flag name="pqos"> to generate real-time statistics of hardware counters</flag>
|
||||
<flag name="unwind">to generate sample-based profiling</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,113 +0,0 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="runtime that implements the OmpSs-2 parallel programming model"
|
||||
HOMEPAGE="https://github.com/bsc-pm/nanos6"
|
||||
SRC_URI="https://github.com/bsc-pm/nanos6/archive/refs/tags/version-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-version-${PV}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="ctf2prv debug dlb execution-workflow extrae memkind mercurium papi pqos test unwind"
|
||||
#jemalloc require custom jemalloc
|
||||
#TODO: cuda
|
||||
#TODO: llvm-libunwind
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/boost-1.59:=
|
||||
sys-apps/hwloc
|
||||
sys-process/numactl
|
||||
virtual/libelf
|
||||
|
||||
ctf2prv? ( dev-util/babeltrace2 )
|
||||
dlb? ( sys-cluster/dlb )
|
||||
extrae? ( sys-cluster/extrae[nanos] )
|
||||
memkind? ( dev-libs/memkind )
|
||||
mercurium? ( sys-cluster/mcxx[ompss2] )
|
||||
papi? ( dev-libs/papi )
|
||||
pqos? ( sys-apps/intel-cmt-cat )
|
||||
unwind? ( sys-libs/libunwind )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-include-string.patch" )
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="test? ( !mercurium )" # https://github.com/bsc-pm/nanos6/issues/3
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--disable-embed-code-changes
|
||||
--disable-openacc
|
||||
--disable-static
|
||||
|
||||
--enable-shared
|
||||
|
||||
--with-boost="${EPREFIX}/usr"
|
||||
--with-libnuma="${EPREFIX}/usr"
|
||||
|
||||
--without-git
|
||||
--without-k1om
|
||||
--without-nanos6-clang
|
||||
--without-pgi
|
||||
|
||||
$(use_enable debug extra-debug)
|
||||
)
|
||||
|
||||
# https://github.com/bsc-pm/nanos6/issues/6
|
||||
use ctf2prv && myconf+=( "--with-babeltrace2=${EPREFIX}/usr" )
|
||||
use dlb && myconf+=( "--with-dlb=${EPREFIX}/usr" )
|
||||
use memkind && myconf+=( "--with-memkind=${EPREFIX}/usr" )
|
||||
use pqos && myconf+=( "--with-pqos=${EPREFIX}/usr" )
|
||||
|
||||
if use extrae; then
|
||||
myconf+=( "--with-extrae=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-extrae" )
|
||||
fi
|
||||
# if use jemalloc; then
|
||||
# myconf+=( "--with-jemalloc=${EPREFIX}/usr" )
|
||||
# else
|
||||
# myconf+=( "--without-jemalloc" )
|
||||
# fi
|
||||
if use mercurium; then
|
||||
myconf+=( "--with-nanos6-mercurium=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-nanos6-mercurium" )
|
||||
fi
|
||||
if use papi; then
|
||||
myconf+=( "--with-papi=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-papi" )
|
||||
fi
|
||||
if use unwind; then
|
||||
myconf+=( "--with-libunwind=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-libunwind" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc CHANGELOG.md
|
||||
rm -r docs/Doxyfile* || die
|
||||
dodoc -r docs/.
|
||||
|
||||
docompress -x "/usr/share/doc/${PF}/paraver-cfg"
|
||||
docompress -x "/usr/share/doc/${PF}/scripts"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "install media-gfx/graphviz and app-text/pdfjam or >=app-text/texlive-core-2021 to generate graphical representations of the dependency graph"
|
||||
elog "install sys-process/parallel to generate the graph representation in parallel"
|
||||
}
|
||||
@@ -1,119 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="runtime that implements the OmpSs-2 parallel programming model"
|
||||
HOMEPAGE="https://github.com/bsc-pm/nanos6"
|
||||
SRC_URI="https://github.com/bsc-pm/nanos6/archive/refs/tags/version-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-version-${PV}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="ctf2prv debug +dependency-delayed-operations dlb execution-workflow extrae mercurium papi pqos test unwind"
|
||||
#jemalloc require custom jemalloc
|
||||
#TODO: cuda
|
||||
#TODO: llvm-libunwind
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/boost-1.59:=
|
||||
sys-apps/hwloc
|
||||
sys-process/numactl
|
||||
virtual/libelf
|
||||
|
||||
ctf2prv? ( dev-util/babeltrace2 )
|
||||
dlb? ( sys-cluster/dlb )
|
||||
extrae? ( sys-cluster/extrae[nanos] )
|
||||
mercurium? ( sys-cluster/mcxx[ompss2] )
|
||||
papi? ( dev-libs/papi )
|
||||
pqos? ( sys-apps/intel-cmt-cat )
|
||||
unwind? ( sys-libs/libunwind )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="test? ( !mercurium )" # https://github.com/bsc-pm/nanos6/issues/3
|
||||
|
||||
# debug and lint variant add custom cflags
|
||||
QA_FLAGS_IGNORED="
|
||||
libnanos6-debug-*.so*
|
||||
libnanos6-optimized-*-lint.so*
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--disable-embed-code-changes
|
||||
--disable-openacc
|
||||
--disable-static
|
||||
|
||||
--enable-shared
|
||||
|
||||
--with-boost="${EPREFIX}/usr"
|
||||
--with-libnuma="${EPREFIX}/usr"
|
||||
|
||||
--without-git
|
||||
--without-k1om
|
||||
--without-nanos6-clang
|
||||
--without-pgi
|
||||
|
||||
$(use_enable debug extra-debug)
|
||||
$(use_enable dependency-delayed-operations)
|
||||
)
|
||||
|
||||
# https://github.com/bsc-pm/nanos6/issues/6
|
||||
use ctf2prv && myconf+=( "--with-babeltrace2=${EPREFIX}/usr" )
|
||||
use dlb && myconf+=( "--with-dlb=${EPREFIX}/usr" )
|
||||
use pqos && myconf+=( "--with-pqos=${EPREFIX}/usr" )
|
||||
|
||||
if use extrae; then
|
||||
myconf+=( "--with-extrae=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-extrae" )
|
||||
fi
|
||||
# if use jemalloc; then
|
||||
# myconf+=( "--with-jemalloc=${EPREFIX}/usr" )
|
||||
# else
|
||||
# myconf+=( "--without-jemalloc" )
|
||||
# fi
|
||||
if use mercurium; then
|
||||
myconf+=( "--with-nanos6-mercurium=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-nanos6-mercurium" )
|
||||
fi
|
||||
if use papi; then
|
||||
myconf+=( "--with-papi=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-papi" )
|
||||
fi
|
||||
if use unwind; then
|
||||
myconf+=( "--with-libunwind=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-libunwind" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc CHANGELOG.md
|
||||
rm -r docs/Doxyfile* || die
|
||||
dodoc -r docs/.
|
||||
|
||||
docompress -x "/usr/share/doc/${PF}/paraver-cfg"
|
||||
docompress -x "/usr/share/doc/${PF}/scripts"
|
||||
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "install media-gfx/graphviz and app-text/pdfjam or >=app-text/texlive-core-2021 to generate graphical representations of the dependency graph"
|
||||
elog "install sys-process/parallel to generate the graph representation in parallel"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST nanox-0.15_p20210818.tar.gz 1185402 BLAKE2B e390f1780d6f2c68e08cf8784bfb37da777e86b2790dc056f79fefd68b36e7b321b2fb865137e4fe7d5c2d10e7b094cf0abdcb3e65c0122c6e38b81de39d9a4a SHA512 7cc897291a050588a9b0e9b5a42fff2e75baf6ac6a2ca9dabb6ad7a38eeb5f3d9542cc4052b3cdd812e8ce45d2f1d5409216f690c8c6fae55aa13859dfa328e6
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/m4/ax_config_cc.m4
|
||||
+++ b/m4/ax_config_cc.m4
|
||||
@@ -71,7 +71,7 @@
|
||||
# Default: use -include flag
|
||||
cc_dep_CPPFLAGS="-include \"config.h\" -include \"nanox-config.h\""
|
||||
cc_dep_CXXFLAGS="-include \"new_decl.hpp\""
|
||||
- AX_APPEND_FLAG([-Wall -Wextra -Wshadow -Wmissing-declarations -Wno-unused-parameter -Wno-missing-field-initializers -Werror],[cc_dep_CXXFLAGS])
|
||||
+ AX_APPEND_FLAG([-Wall -Wextra -Wshadow -Wmissing-declarations -Wno-unused-parameter -Wno-missing-field-initializers],[cc_dep_CXXFLAGS])
|
||||
no_inline_flag=-fno-inline
|
||||
])
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<longdescription lang="en">
|
||||
Nanos++ is a parallel runtime library aimed at fast prototyping developed by the Programming Models group at the Barcelona Supercomputing Center.
|
||||
Nanos++ is mainly used together with the Mercurium compiler to implement the OmpSs programming model (an extension to the OpenMP programming model based only in tasks). Both tools also implement OpenMP 3.1 features and include some additional extensions (some of them also introduced in following OpenMP releases).
|
||||
The runtime provides several services to support task parallelism using a synchronization mechanism based on data-dependencies. Data parallelism is also supported by means of services mapped on top of its task support. Task are implemented as user-level threads when possible (currently x86, x86-64, ia64, arm, aarch64, ppc32 and ppc64 are supported). It also provides support for maintaining coherence across different address spaces (such as with GPUs or cluster nodes) by means of a directory/cache mechanism.
|
||||
The main purpose of Nanos++ RTL is to be used in research of parallel programming environments. Our aim has been to enable easy development of different parts of the runtime so researchers have a platform that allows them to try different mechanisms. As such it is designed to be extensible by means of plugins. The scheduling policy, the throttling policy, the dependence approach, the barrier implementations, slicers and worksharing mechanisms, the instrumentation layer and the architectural dependant level are examples of plugins that developers may easily implement using Nanos++. This extensibility does not come for free. The runtime overheads are slightly increased, but there should be low enough for results to be meaningful except for cases of extreme-fine grain applications.
|
||||
</longdescription>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bsc-pm/nanox/issues</bugs-to>
|
||||
<remote-id type="github">bsc-pm/nanox</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="allocator">Enables Allocator module</flag>
|
||||
<flag name="ayudame">Enables ayudame support from <pkg>sys-cluster/temanejo</pkg></flag>
|
||||
<!--<flag name="cuda">enable CUDA</flag>-->
|
||||
<flag name="dlb">build with <pkg>sys-cluster/dlb</pkg> library support</flag>
|
||||
<flag name="extrae">build with <pkg>sys-cluster/extrae</pkg> support</flag>
|
||||
<flag name="gasnet">Enable <pkg>sys-cluster/gasnet</pkg> support</flag>
|
||||
<flag name="hwloc">Enable <pkg>sys-apps/hwloc</pkg> support</flag>
|
||||
<flag name="memkind">Enables <pkg>dev-libs/memkind</pkg> support</flag>
|
||||
<flag name="memtracker">Enables Memtracker module</flag>
|
||||
<flag name="opencl">Enables openCL support</flag>
|
||||
<flag name="papi">enable <pkg>dev-libs/papi</pkg> support</flag>
|
||||
<flag name="resiliency">Enables task-level resiliency</flag>
|
||||
<flag name="task-callback">Enables task callback feature</flag>
|
||||
<flag name="sqlite">enable <pkg>dev-db/sqlite</pkg> support</flag>
|
||||
<flag name="threads">Enable user level threads</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,151 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
COMMIT="a9df6936128ebe10374350c719a0fba74bc89803"
|
||||
DOCS_BUILDER="doxygen"
|
||||
DOCS_CONFIG_NAME="doxy-nanox"
|
||||
DOCS_DIR="doc"
|
||||
|
||||
inherit autotools docs
|
||||
|
||||
DESCRIPTION="Runtime designed to serve as runtime support in parallel environments"
|
||||
HOMEPAGE="
|
||||
https://pm.bsc.es/nanox
|
||||
https://github.com/bsc-pm/nanox
|
||||
"
|
||||
SRC_URI="https://github.com/bsc-pm/nanox/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE_NANOX="
|
||||
nanox_debug
|
||||
+nanox_instrumentation
|
||||
nanox_instrumentation-debug
|
||||
+nanox_performance
|
||||
"
|
||||
IUSE="${IUSE_NANOX} allocator ayudame dlb +extrae gasnet hwloc memkind memtracker mpi opencl papi sqlite resiliency task-callback +threads"
|
||||
|
||||
CDEPEND="
|
||||
ayudame? ( sys-cluster/temanejo[-ompss] )
|
||||
dlb? ( sys-cluster/dlb )
|
||||
extrae? ( sys-cluster/extrae[nanos] )
|
||||
gasnet? ( sys-cluster/gasnet )
|
||||
hwloc? ( sys-apps/hwloc )
|
||||
memkind? ( dev-libs/memkind )
|
||||
mpi? ( virtual/mpi )
|
||||
papi? ( dev-libs/papi )
|
||||
sqlite? ( dev-db/sqlite )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
opencl? ( virtual/opencl )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
opencl? ( dev-util/opencl-headers )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-no-Werror.patch" )
|
||||
REQUIRED_USE="
|
||||
|| ( ${IUSE_NANOX//+/} )
|
||||
nanox_instrumentation? ( extrae )
|
||||
nanox_instrumentation-debug? ( extrae )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use opencl && addwrite /dev/dri/
|
||||
use opencl && addwrite /var/lib/portage/home/.cache #mesa shader cache
|
||||
|
||||
local myconf=(
|
||||
--disable-static
|
||||
--enable-gcc-new-atomic-builtins
|
||||
--enable-performance
|
||||
--enable-shared
|
||||
--without-cellsdk
|
||||
--without-chapel
|
||||
--without-cuda
|
||||
--without-mcc
|
||||
--without-nextsim
|
||||
--without-xdma
|
||||
|
||||
$(use_enable allocator)
|
||||
$(use_enable memtracker)
|
||||
$(use_enable nanox_debug debug)
|
||||
$(use_enable nanox_instrumentation instrumentation)
|
||||
$(use_enable nanox_instrumentation-debug instrumentation-debug)
|
||||
$(use_enable nanox_performance performance)
|
||||
$(use_enable resiliency)
|
||||
$(use_enable task-callback)
|
||||
$(use_enable threads ult)
|
||||
|
||||
$(use_with opencl)
|
||||
)
|
||||
|
||||
if use ayudame; then
|
||||
myconf+=( "--with-ayudame=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-ayudame" )
|
||||
fi
|
||||
if use dlb; then
|
||||
myconf+=( "--with-dlb=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-dlb" )
|
||||
fi
|
||||
if use extrae; then
|
||||
myconf+=( "--with-extrae=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-extrae" )
|
||||
fi
|
||||
if use gasnet; then
|
||||
myconf+=( "--with-gasnet=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-gasnet" )
|
||||
fi
|
||||
if use hwloc; then
|
||||
myconf+=( "--with-hwloc=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-hwloc" )
|
||||
fi
|
||||
if use memkind; then
|
||||
myconf+=( "--with-memkind=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-memkind" )
|
||||
fi
|
||||
if use mpi; then
|
||||
myconf+=( "--with-mpi=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-mpi" )
|
||||
fi
|
||||
if use papi; then
|
||||
myconf+=( "--with-papi=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-papi" )
|
||||
fi
|
||||
if use sqlite; then
|
||||
myconf+=( "--with-sqlite3=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-sqlite3" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
einstalldocs
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST osu-micro-benchmarks-5.9.tar.gz 809301 BLAKE2B 84c3fcfe78817a0ab646a63e74f5b8d140cf318c2cfe1d6a533a063c5b5edbbb80991e97f1295948ab5778e1326c7cd7c3057b56d239d87386f0ae45cbd310d5 SHA512 67bc1efedd4eb4a75024c51dd83da46179185171ae9028ca586edb91488600aabe0101a14d4de105517f5fa06ee546b83701034d34d64ad301ad6ea5227dd91d
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="openshmem">Build OpenSHMEM benchmarks</flag>
|
||||
<flag name="rocm">Enable ROCm extensions</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,86 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools edo toolchain-funcs
|
||||
|
||||
DESCRIPTION="MPI, OPC and many other benchmarks"
|
||||
HOMEPAGE="https://mvapich.cse.ohio-state.edu/benchmarks/"
|
||||
SRC_URI="https://mvapich.cse.ohio-state.edu/download/mvapich/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="openshmem rocm"
|
||||
|
||||
DEPEND="
|
||||
virtual/mpi
|
||||
|
||||
openshmem? ( sys-cluster/SOS )
|
||||
rocm? ( dev-util/hip )
|
||||
"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
# TODO: cuda upc++ NCCL
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
edo pushd "${WORKDIR}"
|
||||
edo cp -r "${S}" "${S}_mpi"
|
||||
use openshmem && edo cp -r "${S}" "${S}_oshm"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--disable-cuda
|
||||
--disable-ncclomb
|
||||
--disable-openacc
|
||||
--disable-static
|
||||
--enable-shared
|
||||
|
||||
$(use_enable rocm)
|
||||
)
|
||||
|
||||
CC="$(tc-getCC)" CXX="$(tc-getCXX)" econf "${myconf[@]}"
|
||||
|
||||
edo pushd "${S}_mpi"
|
||||
CC=mpicc CXX=mpicxx econf "${myconf[@]}"
|
||||
edo popd
|
||||
|
||||
if use openshmem; then
|
||||
edo pushd "${S}_oshm"
|
||||
CC=oshcc CXX=oshc++ econf "${myconf[@]}"
|
||||
edo popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
CC="$(tc-getCC)" CXX="$(tc-getCXX)" default
|
||||
|
||||
edo pushd "${S}_mpi"
|
||||
CC=mpicc CXX=mpicxx default
|
||||
edo popd
|
||||
|
||||
if use openshmem; then
|
||||
edo pushd "${S}_oshm"
|
||||
CC=oshcc CXX=oshc++ default
|
||||
edo popd
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
edo pushd "${S}_mpi"
|
||||
default
|
||||
edo popd
|
||||
|
||||
if use openshmem; then
|
||||
edo pushd "${S}_oshm"
|
||||
default
|
||||
edo popd
|
||||
fi
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST paraver-kernel-4.10.1.gh.tar.gz 2154910 BLAKE2B a90364eefb3c6195f106736dab89d71e9e413a5ba8d7655d4956fdaf8ebe229a1f4c485c847d9a0719c89d26dc849decc575a5d27f0d72ea84295079dd8b4914 SHA512 42cd02d44c3b2950b56d3c2557fc729e6ae3f295e6dde2362698f29a72cb67e8ac8cf2749204bbc79721ed2fb1ba64ca1ae32a6d69add878dc131f55547b8574
|
||||
@@ -1,213 +0,0 @@
|
||||
--- a/api/eventlabels.h
|
||||
+++ b/api/eventlabels.h
|
||||
@@ -32,7 +32,7 @@
|
||||
#ifdef OLD_PCFPARSER
|
||||
#include "utils/pcfparser/old/ParaverTraceConfig.h"
|
||||
#else
|
||||
-#include "utils/pcfparser/UIParaverTraceConfig.h"
|
||||
+#include "UIParaverTraceConfig.h"
|
||||
#endif
|
||||
|
||||
using namespace libparaver;
|
||||
--- a/api/Makefile.am
|
||||
+++ b/api/Makefile.am
|
||||
@@ -1,20 +1,6 @@
|
||||
|
||||
pkglib_LTLIBRARIES = libparaver-api.la
|
||||
|
||||
-if MAKE_OLD_PCFPARSER
|
||||
- PCFPARSER_FILES= ../utils/pcfparser/old/LibException.cpp \
|
||||
- ../utils/pcfparser/old/ParaverEventType.cpp \
|
||||
- ../utils/pcfparser/old/ParaverEventValue.cpp \
|
||||
- ../utils/pcfparser/old/ParaverGradientColor.cpp \
|
||||
- ../utils/pcfparser/old/ParaverGradientNames.cpp \
|
||||
- ../utils/pcfparser/old/ParaverState.cpp \
|
||||
- ../utils/pcfparser/old/ParaverStatesColor.cpp \
|
||||
- ../utils/pcfparser/old/ParaverTraceConfig.cpp \
|
||||
- ../utils/pcfparser/old/ParaverTraceConfigGrammar.cpp
|
||||
-else
|
||||
- PCFPARSER_FILES=../utils/pcfparser/ParaverTraceConfig.cpp \
|
||||
- ../utils/pcfparser/UIParaverTraceConfig.cpp
|
||||
-endif
|
||||
|
||||
if MINGW_ENABLED
|
||||
noinst_LTLIBRARIES = libparavertraceconfig.la
|
||||
@@ -23,6 +9,9 @@
|
||||
libparaver_api_la_LIBADD = libparavertraceconfig.la
|
||||
endif
|
||||
|
||||
+libparaver_api_la_LIBADD = -lparavertraceconfig
|
||||
+libparaver_api_la_LDFLAGS = -lparavertraceconfig
|
||||
+
|
||||
libparaver_api_la_SOURCES = \
|
||||
cfg.cpp \
|
||||
cfgs4d.cpp \
|
||||
@@ -61,9 +50,6 @@
|
||||
workspace.cpp \
|
||||
workspacemanager.cpp
|
||||
|
||||
-if !MINGW_ENABLED
|
||||
- libparaver_api_la_SOURCES += $(PCFPARSER_FILES)
|
||||
-endif
|
||||
|
||||
include_HEADERS = \
|
||||
cfg.h \
|
||||
@@ -121,16 +107,6 @@
|
||||
traceeditstates.cpp \
|
||||
zoomhistory.cpp
|
||||
|
||||
-install-data-hook:
|
||||
- $(mkdir_p) $(DESTDIR)$(includedir)/utils/pcfparser
|
||||
- cp -f ../utils/pcfparser/UIParaverTraceConfig.h $(DESTDIR)$(includedir)/utils/pcfparser
|
||||
- cp -f ../utils/pcfparser/UIParaverTraceConfig.ipp $(DESTDIR)$(includedir)/utils/pcfparser
|
||||
-
|
||||
- $(mkdir_p) $(DESTDIR)$(includedir)/utils/pcfparser/old
|
||||
- cp -f ../utils/pcfparser/old/ParaverTraceConfig.h $(DESTDIR)$(includedir)/utils/pcfparser/old
|
||||
-
|
||||
-uninstall-hook:
|
||||
- test -d $(DESTDIR)$(includedir)/utils/pcfparser && rm -rf $(DESTDIR)$(includedir)/utils/pcfparser
|
||||
|
||||
|
||||
# Erases everything which should not be uploaded to CVS
|
||||
--- a/api/paramedir.cpp
|
||||
+++ b/api/paramedir.cpp
|
||||
@@ -57,7 +57,7 @@
|
||||
#ifdef OLD_PCFPARSER
|
||||
#include "utils/pcfparser/old/ParaverTraceConfig.h"
|
||||
#else
|
||||
-#include "utils/pcfparser/UIParaverTraceConfig.h"
|
||||
+#include "UIParaverTraceConfig.h"
|
||||
#endif
|
||||
|
||||
// PARAMEDIR OPTIONS
|
||||
--- a/api/statelabels.h
|
||||
+++ b/api/statelabels.h
|
||||
@@ -31,7 +31,7 @@
|
||||
#ifdef OLD_PCFPARSER
|
||||
#include "utils/pcfparser/old/ParaverTraceConfig.h"
|
||||
#else
|
||||
-#include "utils/pcfparser/UIParaverTraceConfig.h"
|
||||
+#include "UIParaverTraceConfig.h"
|
||||
#endif
|
||||
|
||||
using namespace libparaver;
|
||||
--- a/api/trace.cpp
|
||||
+++ b/api/trace.cpp
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "utils/pcfparser/old/ParaverStatesColor.h"
|
||||
#include "utils/pcfparser/old/ParaverGradientColor.h"
|
||||
#else
|
||||
-#include "utils/pcfparser/UIParaverTraceConfig.h"
|
||||
+#include "UIParaverTraceConfig.h"
|
||||
#endif
|
||||
|
||||
#include "progresscontroller.h"
|
||||
--- a/api/tracecutter.cpp
|
||||
+++ b/api/tracecutter.cpp
|
||||
@@ -31,7 +31,7 @@
|
||||
#ifdef OLD_PCFPARSER
|
||||
#include "utils/pcfparser/old/ParaverTraceConfig.h"
|
||||
#else
|
||||
-#include "utils/pcfparser/UIParaverTraceConfig.h"
|
||||
+#include "UIParaverTraceConfig.h"
|
||||
#endif
|
||||
|
||||
using namespace libparaver;
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -55,7 +55,6 @@
|
||||
AC_CONFIG_HEADERS(config_traits.h)
|
||||
AX_PROG_ENABLE_DEPENDENCIES_AWARE_INSTALL
|
||||
AX_PROG_ENABLE_EXTENDED_OBJECTS
|
||||
-AX_PROG_ENABLE_OLD_PCFPARSER
|
||||
AX_PROG_ENABLE_OMPSS
|
||||
AX_PROG_ENABLE_OPENMP
|
||||
AX_PROG_ENABLE_MINGW
|
||||
@@ -89,4 +88,4 @@
|
||||
AC_SUBST([AM_CXXFLAGS])
|
||||
AC_SUBST([AM_LDFLAGS])
|
||||
|
||||
-AC_OUTPUT([Makefile src/Makefile api/Makefile include/Makefile utils/Makefile utils/include/Makefile utils/src/Makefile utils/pcfparser/Makefile utils/pcfparser/old/Makefile])
|
||||
+AC_OUTPUT([Makefile src/Makefile api/Makefile include/Makefile utils/Makefile utils/include/Makefile utils/src/Makefile])
|
||||
--- a/m4/macros.m4
|
||||
+++ b/m4/macros.m4
|
||||
@@ -36,27 +36,6 @@
|
||||
|
||||
|
||||
|
||||
-# AX_PROG_ENABLE_OLD_PCFPARSER
|
||||
-# ----------------------------
|
||||
-AC_DEFUN([AX_PROG_ENABLE_OLD_PCFPARSER],
|
||||
-[
|
||||
- AC_ARG_ENABLE(old_pcfparser,
|
||||
- AC_HELP_STRING(
|
||||
- [--enable-old-pcfparser],
|
||||
- [enable compilation with old pcfparser (default: disabled)]
|
||||
- ),
|
||||
- [enable_old_pcfparser="${enableval}"],
|
||||
- [enable_old_pcfparser="no"]
|
||||
- )
|
||||
-
|
||||
- if test "${enable_old_pcfparser}" = "yes" ; then
|
||||
- AC_MSG_NOTICE([Using old pcfparser.])
|
||||
- AC_DEFINE([OLD_PCFPARSER], 1, [Old pcfparser enabled by user.])
|
||||
- fi
|
||||
-
|
||||
- AM_CONDITIONAL(MAKE_OLD_PCFPARSER, test "${enable_old_pcfparser}" = "yes" )
|
||||
-])
|
||||
-
|
||||
|
||||
|
||||
# AX_PROG_ENABLE_OMPSS
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -11,7 +11,7 @@
|
||||
api/paramedir.cpp
|
||||
|
||||
paramedir_bin_LDADD = \
|
||||
- -lz \
|
||||
+ -lz -lparavertraceconfig \
|
||||
api/libparaver-api.la \
|
||||
src/libparaver-kernel.la
|
||||
|
||||
--- a/src/ktraceeditactions.cpp
|
||||
+++ b/src/ktraceeditactions.cpp
|
||||
@@ -45,7 +45,7 @@
|
||||
#ifdef OLD_PCFPARSER
|
||||
#include "utils/pcfparser/old/ParaverTraceConfig.h"
|
||||
#else
|
||||
-#include "utils/pcfparser/UIParaverTraceConfig.h"
|
||||
+#include "UIParaverTraceConfig.h"
|
||||
#endif
|
||||
|
||||
using std::set;
|
||||
@@ -841,4 +841,4 @@
|
||||
tmpSequence->executeNextAction( whichTrace );
|
||||
|
||||
return true;
|
||||
-}
|
||||
\ Manca newline alla fine del file
|
||||
+}
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -58,7 +58,10 @@
|
||||
traceeditblocks.cpp \
|
||||
traceheaderexception.cpp\
|
||||
tracestream.cpp
|
||||
-
|
||||
+
|
||||
+libparaver_kernel_la_LIBADD = -lparavertraceconfig
|
||||
+libparaver_kernel_la_LDFLAGS = -lparavertraceconfig
|
||||
+
|
||||
noinst_HEADERS = \
|
||||
cell.cpp \
|
||||
column.cpp \
|
||||
--- a/utils/Makefile.am
|
||||
+++ b/utils/Makefile.am
|
||||
@@ -1,6 +1,5 @@
|
||||
SUBDIRS = \
|
||||
include \
|
||||
- pcfparser \
|
||||
src
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="extended-objects">Enable extra number of objects</flag>
|
||||
<flag name="extrae">Enable extrae support</flag>
|
||||
<flag name="ompss">Enable OmpSs parallel version</flag>
|
||||
<flag name="openmp">Enable OpenMP parallel version</flag>
|
||||
<flag name="otf2">Enable otf2 support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bsc-performance-tools/paraver-kernel/issues</bugs-to>
|
||||
<remote-id type="github">bsc-performance-tools/paraver-kernel</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,76 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools flag-o-matic
|
||||
|
||||
DESCRIPTION="paraver kernel library"
|
||||
HOMEPAGE="
|
||||
http://tools.bsc.es/paraver
|
||||
https://github.com/bsc-performance-tools/paraver-kernel
|
||||
"
|
||||
SRC_URI="https://github.com/bsc-performance-tools/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="extended-objects extrae ompss openmp otf2"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/boost:=
|
||||
dev-libs/libxml2
|
||||
sys-libs/zlib
|
||||
sys-cluster/libbsctools:=
|
||||
extrae? ( sys-cluster/extrae )
|
||||
otf2? ( sys-cluster/otf2 )
|
||||
"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( README NEWS AUTHORS ChangeLog )
|
||||
REQUIRED_USE="extrae? ( openmp )"
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-unbundle-libbsctools.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
rm -r utils/pcfparser || die
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-ldflags '-lxml2'
|
||||
local myconf=(
|
||||
--disable-static
|
||||
--enable-shared
|
||||
--with-boost="${EPREFIX}/usr"
|
||||
--with-boost-libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||
$(use_enable extended-objects)
|
||||
$(use_enable ompss)
|
||||
$(use_enable openmp)
|
||||
)
|
||||
|
||||
if use extrae; then
|
||||
myconf+=( "--with-extrae=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-extrae" )
|
||||
fi
|
||||
if use otf2; then
|
||||
myconf+=( "--with-otf2=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-otf2" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
einstalldocs
|
||||
mkdir -p "${ED}/usr/share/${PN}" || die
|
||||
mv "${ED}/usr/share/filters-config" "${ED}/usr/share/${PN}/" || die
|
||||
mv "${ED}/usr/$(get_libdir)/paraver-kernel"/* "${ED}/usr/$(get_libdir)" || die
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST parsec-3.0.2012.tar.gz 918622 BLAKE2B bcf3b8fcb25282bca2b48b1cfdabf0201384d198235868d42e06cfb1773ed31006b0756a3dc60a3740a9cf3fca95676101ab308015b1b7c160767dc751196385 SHA512 1e76cd2d6dcf791c935d2de22ee66329bdda0fb91ee03d0e9ec7d1d42c5762406efbb562a2b87a421c6c32cf141638338a5a90d584fc7611cbe81a061db4f109
|
||||
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/ICLDisco/parsec/issues</bugs-to>
|
||||
<remote-id type="bitbucket">icldistcomp/parsec</remote-id>
|
||||
<remote-id type="github">ICLDisco/parsec</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
PaRSEC is a generic framework for architecture aware scheduling and management of micro-tasks on distributed many-core heterogeneous architectures. Applications we consider can be expressed as a Direct Acyclic Graph of tasks with labeled edges designating data dependencies. PaRSEC assigns computation threads to the cores, overlaps communications and computations and uses a dynamic, fully-distributed scheduler based on architectural features such as NUMA nodes and algorithmic features such as data reuse.
|
||||
Several high level languages are proposed to expose the DAG from the applications. You can either build the DAG as you go, by using a mechanism called dynamic task generation (DTG), or use the JDF language to expose a compact problem-size independent format that can be queried on-demand to discover data dependencies in a totally distributed fashion.
|
||||
The framework includes libraries, a runtime system, and development tools to help application developers tackle the difficult task of porting their applications to highly heterogeneous and diverse environment.
|
||||
</longdescription>
|
||||
<use>
|
||||
<!--<flag name="cuda">Enable GPU support using CUDA kernels</flag>-->
|
||||
<flag name="devel-headers">Install additional headers in include/parsec allowing external compilation</flag>
|
||||
<flag name="home-config-files">Should the runtime check for the parameter configuration file in the user home (\$HOME/.parsec/mca-params.conf)</flag>
|
||||
<!--<flag name="opencl">Enable GPU support using OpenCL kernels</flag>-->
|
||||
<flag name="sched-deps-mask">Use a complete bitmask to track the dependencies, instead of a counter -- increase the debugging features, but limits to a maximum of 30 input dependencies</flag>
|
||||
<flag name="sim">Enable the computation of the critical path, through simulation</flag>
|
||||
<flag name="tools">Build the helper tools such as the pre-compilers, profiling manipulation and so on</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,172 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOCS_BUILDER="doxygen"
|
||||
DOCS_DIR="docs/doxygen"
|
||||
PYTHON_COMPAT=( python3_{10..11} pypy3 )
|
||||
|
||||
inherit cmake fortran-2 docs python-single-r1
|
||||
|
||||
DESCRIPTION="Parallel Runtime Scheduler and Execution Controller"
|
||||
HOMEPAGE="
|
||||
https://github.com/icldisco/parsec
|
||||
https://bitbucket.org/icldistcomp/parsec
|
||||
"
|
||||
SRC_URI="https://github.com/ICLDisco/${PN}/archive/refs/tags/${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${P}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
# next release
|
||||
# parsec_debug_mem-addr
|
||||
# parsec_debug_mem-leak
|
||||
# parsec_debug_mem-race
|
||||
IUSE_PARSEC_DEBUG="
|
||||
parsec_debug_history
|
||||
parsec_debug_noisier
|
||||
parsec_debug_paranoid
|
||||
"
|
||||
IUSE_PARSEC_DIST="
|
||||
+parsec_dist_collectives
|
||||
+parsec_dist_priorities
|
||||
+parsec_dist_thread
|
||||
"
|
||||
IUSE_PARSEC_PROF="
|
||||
parsec_prof_active-arena-set
|
||||
parsec_prof_btf
|
||||
parsec_prof_dry-body
|
||||
parsec_prof_dry-dep
|
||||
parsec_prof_dry-run
|
||||
parsec_prof_grapher
|
||||
+parsec_prof_mmap
|
||||
parsec_prof_otf2
|
||||
+parsec_prof_pins
|
||||
parsec_prof_ptg-internal-init
|
||||
parsec_prof_rusage-eu
|
||||
parsec_prof_scheduling-events
|
||||
+parsec_prof_helper-thread
|
||||
"
|
||||
IUSE="
|
||||
${IUSE_PARSEC_DEBUG} ${IUSE_PARSEC_DIST} ${IUSE_PARSEC_PROF}
|
||||
+cxx debug +devel-headers fortran +home-config-files +mpi profile +sched-deps-mask sim test +tools
|
||||
"
|
||||
|
||||
#TODO: opencl vite tau
|
||||
RDEPEND="
|
||||
dev-debug/valgrind
|
||||
sys-apps/hwloc
|
||||
sys-cluster/temanejo
|
||||
|
||||
mpi? ( virtual/mpi[threads] )
|
||||
parsec_prof_otf2? ( sys-cluster/otf2 )
|
||||
parsec_prof_pins? ( dev-libs/papi )
|
||||
tools? (
|
||||
profile? (
|
||||
${PYTHON_DEPS}
|
||||
sys-libs/zlib
|
||||
media-gfx/graphviz
|
||||
media-libs/gd:2[jpeg,png]
|
||||
$(python_gen_cond_dep 'dev-python/cython[${PYTHON_USEDEP}]')
|
||||
)
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
test? ( parsec_prof_pins )
|
||||
?? ( mpi sim )
|
||||
?? ( parsec_debug_noisier parsec_debug_history )
|
||||
?? ( parsec_prof_dry-body parsec_prof_dry-dep parsec_prof_dry-run )
|
||||
?? ( parsec_prof_btf parsec_prof_otf2 )
|
||||
"
|
||||
# next release
|
||||
# ?? ( parsec_debug_mem-addr parsec_debug_mem-leak parsec_debug_mem-race )
|
||||
|
||||
pkg_setup() {
|
||||
fortran-2_pkg_setup
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# cannot use ${D} in src_prepare, just skip this directory, it doesn't get installed
|
||||
sed -i -e '/profiling/d' tools/CMakeLists.txt || die
|
||||
|
||||
# 810970 remove unwanted flags from parsec.pc
|
||||
sed -i -e "s/ @EXTRA_CFLAGS@//" -e "s/ @EXTRA_LDFLAGS@//" parsec/include/parsec.pc.in || die
|
||||
|
||||
# 810961: 2 tests fail, 2 time out
|
||||
sed -i -e "/unit_dtd_war_shm/d" -e "/unit_dtd_war_mpi/d" tests/interfaces/superscalar/CMakeLists.txt || die
|
||||
sed -i -e "/unit_haar_tree_mpi/d" tests/haar-tree-project/CMakeLists.txt || die
|
||||
sed -i -e "/unit_merge_sort_mpi/d" tests/merge_sort/Testings.cmake || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local trace="Auto"
|
||||
use parsec_prof_btf && trace="PaRSEC Binary Tracing Format"
|
||||
use parsec_prof_otf2 && trace="OTF2"
|
||||
|
||||
# next release
|
||||
# -DPARSEC_DEBUG_MEM_ADDR=$(usex parsec_debug_mem-addr)
|
||||
# -DPARSEC_DEBUG_MEM_LEAK=$(usex parsec_debug_mem-leak)
|
||||
# -DPARSEC_DEBUG_MEM_RACE=$(usex parsec_debug_mem-race)
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DPARSEC_GPU_CUDA_ALLOC_PER_TILE=OFF
|
||||
-DPARSEC_GPU_WITH_CUDA=OFF
|
||||
-DPARSEC_GPU_WITH_OPENCL=OFF
|
||||
-DPARSEC_PROF_TAU=OFF
|
||||
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
-DBUILD_TOOLS=$(usex tools)
|
||||
-DPARSEC_DEBUG=$(usex debug)
|
||||
-DPARSEC_DEBUG_HISTORY=$(usex parsec_debug_history)
|
||||
-DPARSEC_DEBUG_NOISIER=$(usex parsec_debug_noisier)
|
||||
-DPARSEC_DEBUG_PARANOID=$(usex parsec_debug_paranoid)
|
||||
-DPARSEC_DIST_COLLECTIVES=$(usex parsec_dist_collectives)
|
||||
-DPARSEC_DIST_PRIORITIES=$(usex parsec_dist_priorities)
|
||||
-DPARSEC_DIST_THREAD=$(usex parsec_dist_thread)
|
||||
-DPARSEC_DIST_WITH_MPI=$(usex mpi)
|
||||
-DPARSEC_SCHED_DEPS_MASK=$(usex sched-deps-mask)
|
||||
-DPARSEC_SIM=$(usex sim)
|
||||
-DPARSEC_PROF_DRY_BODY=$(usex parsec_prof_dry-body)
|
||||
-DPARSEC_PROF_DRY_DEP=$(usex parsec_prof_dry-dep)
|
||||
-DPARSEC_PROF_DRY_RUN=$(usex parsec_prof_dry-run)
|
||||
-DPARSEC_PROF_GRAPHER=$(usex parsec_prof_grapher)
|
||||
-DPARSEC_PROF_PINS=$(usex parsec_prof_pins)
|
||||
-DPARSEC_PROF_RUSAGE_EU=$(usex parsec_prof_rusage-eu)
|
||||
-DPARSEC_PROF_TRACE=$(usex profile)
|
||||
-DPARSEC_PROF_TRACE_ACTIVE_ARENA_SET=$(usex parsec_prof_active-arena-set)
|
||||
-DPARSEC_PROF_TRACE_PTG_INTERNAL_INIT=$(usex parsec_prof_ptg-internal-init)
|
||||
-DPARSEC_PROF_TRACE_SCHEDULING_EVENTS=$(usex parsec_prof_scheduling-events)
|
||||
-DPARSEC_PROF_TRACE_SYSTEM="${trace}"
|
||||
-DPARSEC_PROFILING_USE_HELPER_THREAD=$(usex parsec_prof_helper-thread)
|
||||
-DPARSEC_PROFILING_USE_MMAP=$(usex parsec_prof_mmap)
|
||||
-DPARSEC_WANT_HOME_CONFIG_FILES=$(usex home-config-files)
|
||||
-DPARSEC_WITH_DEVEL_HEADERS=$(usex devel-headers)
|
||||
-DSUPPORT_CXX=$(usex cxx)
|
||||
-DSUPPORT_FORTRAN=$(usex fortran)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
einstalldocs
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST portals4-1.0_alpha1_p20190109.tar.gz 759395 BLAKE2B dd610742b2e7d5e79c192a4ea184c57ffff4c2341c721e0b9be65e67800698a1973e948922969d4efbc976a879451398a189cdb12ad8a10fe5ae7d9e1017c3e9 SHA512 84805f58293fb9d5069e3e6b4909385dd7ffad0e32b54bbbd297e50939142ece3d424cc301a2b30144ef38d37d579a56f16e36f59115db851ec444edd58da1ca
|
||||
@@ -1,58 +0,0 @@
|
||||
From 3210ada117ddaa4591c5de7b2c86b86a3515f513 Mon Sep 17 00:00:00 2001
|
||||
From: Todd Kordenbrock <thkgcode@gmail.com>
|
||||
Date: Sun, 8 Aug 2021 12:49:18 -0500
|
||||
Subject: [PATCH] Fix PPE related compile and link errors.
|
||||
|
||||
---
|
||||
src/ib/Makefile.am | 10 ++++++----
|
||||
src/ib/ptl_mr.c | 5 ++++-
|
||||
2 files changed, 10 insertions(+), 5 deletions(-)
|
||||
|
||||
--- a/src/ib/Makefile.am
|
||||
+++ b/src/ib/Makefile.am
|
||||
@@ -97,9 +97,9 @@ endif
|
||||
else
|
||||
# PPE - (implies no SHMEM; IB optional)
|
||||
|
||||
-libportals_ib_la_CPPFLAGS = -DIS_LIGHT_LIB -I$(top_srcdir)/include $(XPMEM_CPPFLAGS)
|
||||
-libportals_ib_la_LIBADD = $(XPMEM_LIBS)
|
||||
-libportals_ib_la_LDFLAGS = $(XPMEM_LDFLAGS)
|
||||
+libportals_ib_la_CPPFLAGS = -DIS_LIGHT_LIB -I$(top_srcdir)/include $(ev_CPPFLAGS) $(XPMEM_CPPFLAGS)
|
||||
+libportals_ib_la_LIBADD = $(ev_LIBS) $(XPMEM_LIBS)
|
||||
+libportals_ib_la_LDFLAGS = $(ev_LDFLAGS) $(XPMEM_LDFLAGS)
|
||||
libportals_ib_la_SOURCES = \
|
||||
ptl_ct_common.c \
|
||||
ptl_ct_common.h \
|
||||
@@ -205,7 +205,9 @@ endif
|
||||
if WITH_TRANSPORT_UDP
|
||||
libportals_ppe_la_SOURCES += \
|
||||
ptl_iface_udp.c \
|
||||
- ptl_udp.c
|
||||
+ ptl_udp.c \
|
||||
+ ptl_rudp.h \
|
||||
+ ptl_rudp.c
|
||||
endif
|
||||
|
||||
endif
|
||||
--- a/src/ib/ptl_mr.c
|
||||
+++ b/src/ib/ptl_mr.c
|
||||
@@ -335,6 +335,7 @@ int mr_lookup(ni_t *ni, struct ni_mr_tree *tree, void *start,
|
||||
|
||||
mr = NULL;
|
||||
|
||||
+#if !IS_PPE
|
||||
if (global_umn_init == 1){
|
||||
|
||||
while (link) {
|
||||
@@ -407,8 +408,10 @@ int mr_lookup(ni_t *ni, struct ni_mr_tree *tree, void *start,
|
||||
mr = NULL;
|
||||
}
|
||||
}
|
||||
+ else
|
||||
+#endif
|
||||
/* No memory registration cache enabled */
|
||||
- else {
|
||||
+ {
|
||||
INIT_LIST_HEAD(&mr_list);
|
||||
}
|
||||
/* Insert the new node */
|
||||
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/Portals4/portals4/issues</bugs-to>
|
||||
<remote-id type="github">Portals4/portals4</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="knem">Use <pkg>sys-cluster/knem</pkg> for bulk message transfer</flag>
|
||||
<flag name="me-triggered">Enable extended (non-standard) triggered operations. Experimental</flag>
|
||||
<flag name="pmi">Enable PMI support</flag>
|
||||
<flag name="ppe">Enable process-offload engine for Portals. Experimental</flag>
|
||||
<flag name="reliable-udp">Use reliable UDP for remote communication</flag>
|
||||
<flag name="zero-mrs">Enable this when using MOFED V2.2+ or Qlogic InfiniPath Hardware of IB communication</flag>
|
||||
<flag name="unordered-matching">Enable unordered (hashed) match list searching. Experimental</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,110 +0,0 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
COMMIT="71fc5d04c9f8fc9818a05cdc608e2d13af825d83"
|
||||
DOCS_BUILDER="doxygen"
|
||||
DOCS_CONFIG_NAME="doxygen.conf"
|
||||
DOCS_DIR="doc"
|
||||
|
||||
inherit autotools docs optfeature
|
||||
|
||||
DESCRIPTION="low-level network API for high-performance networking"
|
||||
HOMEPAGE="
|
||||
https://www.sandia.gov/portals/portals-4-0/
|
||||
https://github.com/Portals4/portals4
|
||||
"
|
||||
SRC_URI="https://github.com/Portals4/portals4/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE_TRANSPORT="
|
||||
transport_shmem
|
||||
+transport_udp
|
||||
"
|
||||
IUSE="${IUSE_TRANSPORT} knem me-triggered pmi ppe reliable-udp test unordered-matching zero-mrs"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libev
|
||||
dev-libs/libxml2
|
||||
|
||||
knem? ( sys-cluster/knem )
|
||||
pmi? ( || ( sys-cluster/slurm sys-cluster/pmix[pmi] ) )
|
||||
ppe? ( sys-kernel/xpmem )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-fix-PPE-related-compile-and-link-errors.patch" )
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
?? ( ppe transport_shmem )
|
||||
|
||||
knem? ( transport_shmem )
|
||||
reliable-udp? ( transport_udp )
|
||||
test? ( pmi )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--disable-fast
|
||||
--disable-kitten
|
||||
--disable-picky
|
||||
--disable-pmi-from-portals
|
||||
--disable-static
|
||||
--disable-transport_ib
|
||||
--with-ev="${EPREFIX}/usr"
|
||||
--without-ofed
|
||||
|
||||
$(use_enable me-triggered)
|
||||
$(use_enable ppe)
|
||||
$(use_enable reliable-udp)
|
||||
$(use_enable test testing)
|
||||
$(use_enable transport_shmem)
|
||||
$(use_enable transport_udp)
|
||||
$(use_enable unordered-matching)
|
||||
$(use_enable zero-mrs)
|
||||
)
|
||||
|
||||
if use knem; then
|
||||
myconf+=( "--with-knem=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-knem" )
|
||||
fi
|
||||
if use ppe; then
|
||||
myconf+=( "--with-xpmem=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-xpmem" )
|
||||
fi
|
||||
if use pmi; then
|
||||
myconf+=( "--with-pmi=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-pmi" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
einstalldocs
|
||||
find "${D}" -name '*.la' -delete || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Required for correctness with the IB transport. Ensure that /dev/ummunotify is readable/writable by the user running the portals software." sys-kernel/ummunotify
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST redset-0.1.0.tar.gz 466858 BLAKE2B bf60cdc95dc7cb748c9ce131265a2c24d575137b9642ff7ba63f520fbe67c58cd5bbe026f2036d54f239ffadebb5ac4a4a266b7ec8bd9a66eca541b378c8089e SHA512 dc78b668d03a309c44f7c070a08c3fbf9f00fa82bf517c199fac4a67116e6c5b2ab73776299b0b1942a90f9decc6fb238fcf1d0f06a81f6130ae2fdf8eb82541
|
||||
DIST redset-0.2.0.tar.gz 466707 BLAKE2B b990753af7029316b132dfbf804bc7c2dd49944aea8306290a0cceae3a772014d0e89332b5c5d5d9f866c694fb24de9e06e154f05de65115fe1e6f863e86305f SHA512 d323a1d062e683f1af4269a1a278611de9656cade58ed5bff6d3bc1ec37410dc0785066d7ab4c4d381a51badea850f205f9ee93ab0cafb3dea4f31e17f710e6d
|
||||
@@ -1,29 +0,0 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -44,26 +44,11 @@
|
||||
SET_TARGET_PROPERTIES(redset PROPERTIES OUTPUT_NAME redset CLEAN_DIRECT_OUTPUT 1)
|
||||
INSTALL(TARGETS redset DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
-ADD_LIBRARY(redset-static STATIC $<TARGET_OBJECTS:redset_o>)
|
||||
-IF(REDSET_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(REDSET_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(redset-static ${REDSET_EXTERNAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(redset-static PROPERTIES OUTPUT_NAME redset CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS redset-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
# Non-MPI library for CLI
|
||||
ADD_LIBRARY(redset_base SHARED ${redset_noMPI_srcs})
|
||||
TARGET_LINK_LIBRARIES(redset_base ${REDSET_SERIAL_LIBS})
|
||||
INSTALL(TARGETS redset_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
-ADD_LIBRARY(redset_base-static STATIC ${redset_noMPI_srcs})
|
||||
-TARGET_LINK_LIBRARIES(redset_base-static ${REDSET_SERIAL_LIBS})
|
||||
-SET_TARGET_PROPERTIES(redset_base-static PROPERTIES OUTPUT_NAME redset_base CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS redset_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
##############
|
||||
# CLI REDSET #
|
||||
##############
|
||||
@@ -1,31 +0,0 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -46,16 +46,6 @@
|
||||
INSTALL(TARGETS redset DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF()
|
||||
|
||||
-ADD_LIBRARY(redset-static STATIC $<TARGET_OBJECTS:redset_o>)
|
||||
-IF(REDSET_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(REDSET_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(redset-static ${REDSET_EXTERNAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(redset-static PROPERTIES OUTPUT_NAME redset CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS redset-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
# Non-MPI library for CLI
|
||||
if (BUILD_SHARED_LIBS)
|
||||
ADD_LIBRARY(redset_base SHARED ${redset_noMPI_srcs})
|
||||
@@ -63,11 +53,6 @@
|
||||
INSTALL(TARGETS redset_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
endif()
|
||||
|
||||
-ADD_LIBRARY(redset_base-static STATIC ${redset_noMPI_srcs})
|
||||
-TARGET_LINK_LIBRARIES(redset_base-static ${REDSET_SERIAL_LIBS})
|
||||
-SET_TARGET_PROPERTIES(redset_base-static PROPERTIES OUTPUT_NAME redset_base CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS redset_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
##############
|
||||
# CLI REDSET #
|
||||
##############
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">ECP-VeloC/redset</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="slurm">Use <pkg>sys-cluster/slurm</pkg> as resource manager</flag>
|
||||
</use>
|
||||
<longdescription lang="en">This module lets one create one or more redundancy descriptors, which then may be applied to a set of files distributed across a group of processes.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
@@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Low-level distributed erasure coding lib to protect datasets of MPI applications"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/redset"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="slurm test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/KVTree[mpi]
|
||||
sys-cluster/rankstr
|
||||
sys-libs/zlib
|
||||
virtual/mpi
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
slurm? ( sys-cluster/slurm )
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
|
||||
|
||||
src_configure() {
|
||||
local resman="NONE"
|
||||
use slurm && resman="SLURM"
|
||||
export "VELOC_RESOURCE_MANAGER=${resman}"
|
||||
|
||||
mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DREDSET_LINK_STATIC=OFF
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
dodoc -r doc/rst/.
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Low-level distributed erasure coding lib to protect datasets of MPI applications"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/redset"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="slurm test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/KVTree[mpi]
|
||||
sys-cluster/rankstr
|
||||
sys-libs/zlib
|
||||
virtual/mpi
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
slurm? ( sys-cluster/slurm )
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.1.0-no-static.patch" )
|
||||
|
||||
src_configure() {
|
||||
local resman="NONE"
|
||||
use slurm && resman="SLURM"
|
||||
export "VELOC_RESOURCE_MANAGER=${resman}"
|
||||
|
||||
mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DREDSET_LINK_STATIC=OFF
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
dodoc -r doc/rst/.
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST scr-3.0.tar.gz 1235509 BLAKE2B 3a470c1f55d633993db6ca7c7980e6b8b34513370a8233202ac21d625f64c1630eafd6084735e81fe60e05f182b71114f51f8f4fe69df8cf609b1e6d6ded01f5 SHA512 168bffb7c0280094075879fa5c626dfc57f9004c9ebe09a97cf0d2b0e67c3979f31c7b39466586eb20562e6768ce576625a6d4d99f9ad9fe5ae02a82cfbc988f
|
||||
@@ -1,15 +0,0 @@
|
||||
From e842ed30c49d26cc818600fd794354103f99c5fe Mon Sep 17 00:00:00 2001
|
||||
From: Alessandro Barbieri <lssndrbarbieri@gmail.com>
|
||||
Date: Sat, 26 Mar 2022 10:10:01 +0100
|
||||
Subject: [PATCH] add YOGRT_LIBRARIES to SCR_EXTERNAL_SERIAL_LIBS
|
||||
|
||||
--- a/cmake/SCR_DEPENDENCIES.cmake
|
||||
+++ b/cmake/SCR_DEPENDENCIES.cmake
|
||||
@@ -46,6 +46,7 @@ IF(ENABLE_YOGRT)
|
||||
SET(HAVE_LIBYOGRT TRUE)
|
||||
INCLUDE_DIRECTORIES(${YOGRT_INCLUDE_DIRS})
|
||||
LIST(APPEND SCR_EXTERNAL_LIBS ${YOGRT_LIBRARIES})
|
||||
+ LIST(APPEND SCR_EXTERNAL_SERIAL_LIBS ${YOGRT_LIBRARIES})
|
||||
LIST(APPEND SCR_LINK_LINE " -L${WITH_YOGRT_PREFIX}/lib -lyogrt")
|
||||
ENDIF(YOGRT_FOUND)
|
||||
ENDIF(ENABLE_YOGRT)
|
||||
@@ -1,76 +0,0 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -83,16 +83,6 @@
|
||||
INSTALL(TARGETS scr DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF()
|
||||
|
||||
-ADD_LIBRARY(scr-static STATIC $<TARGET_OBJECTS:scr_o>)
|
||||
-IF(SCR_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(scr-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(scr-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(SCR_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(scr-static ${SCR_EXTERNAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(scr-static PROPERTIES OUTPUT_NAME scr CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS scr-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
# Non-MPI library for CLI
|
||||
ADD_LIBRARY(cliscr_noMPI_o OBJECT ${cliscr_noMPI_srcs})
|
||||
|
||||
@@ -103,16 +93,6 @@
|
||||
INSTALL(TARGETS scr_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF(BUILD_SHARED_LIBS)
|
||||
|
||||
-ADD_LIBRARY(scr_base-static STATIC $<TARGET_OBJECTS:cliscr_noMPI_o>)
|
||||
-IF(SCR_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(scr_base-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(scr_base-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(SCR_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(scr_base-static ${SCR_EXTERNAL_SERIAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(scr_base-static PROPERTIES OUTPUT_NAME scr_base CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS scr_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
# Fortran
|
||||
IF(ENABLE_FORTRAN)
|
||||
IF(BUILD_SHARED_LIBS)
|
||||
@@ -121,17 +101,6 @@
|
||||
SET_TARGET_PROPERTIES(scrf PROPERTIES OUTPUT_NAME scrf CLEAN_DIRECT_OUTPUT 1)
|
||||
INSTALL(TARGETS scrf DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF()
|
||||
-
|
||||
- ADD_LIBRARY(scrf-static STATIC scrf.c $<TARGET_OBJECTS:scr_o>)
|
||||
- IF(SCR_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(scrf-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(scrf-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
- TARGET_LINK_LIBRARIES(scrf-static ${SCR_EXTERNAL_LIBS})
|
||||
- ENDIF(SCR_LINK_STATIC)
|
||||
- TARGET_LINK_LIBRARIES(scrf-static ${SCR_EXTERNAL_LIBS})
|
||||
-
|
||||
- SET_TARGET_PROPERTIES(scrf-static PROPERTIES OUTPUT_NAME scrf CLEAN_DIRECT_OUTPUT 1)
|
||||
- INSTALL(TARGETS scrf-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF(ENABLE_FORTRAN)
|
||||
|
||||
###########
|
||||
@@ -164,21 +133,13 @@
|
||||
# Build and install C binaries
|
||||
FOREACH(bin IN ITEMS ${cliscr_c_bins})
|
||||
ADD_EXECUTABLE(${bin} ${bin}.c)
|
||||
- IF(SCR_LINK_STATIC)
|
||||
- TARGET_LINK_LIBRARIES(${bin} scr_base-static)
|
||||
- ELSE(SCR_LINK_STATIC)
|
||||
TARGET_LINK_LIBRARIES(${bin} scr_base)
|
||||
- ENDIF(SCR_LINK_STATIC)
|
||||
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${bin} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
ENDFOREACH(bin IN ITEMS ${cliscr_c_bins})
|
||||
|
||||
# Build and install CLI binaries that link full SCR library
|
||||
FOREACH(bin IN ITEMS ${cliscr_scr_bins})
|
||||
ADD_EXECUTABLE(${bin} ${bin}.c)
|
||||
- IF(SCR_LINK_STATIC)
|
||||
- TARGET_LINK_LIBRARIES(${bin} scr-static)
|
||||
- ELSE(SCR_LINK_STATIC)
|
||||
TARGET_LINK_LIBRARIES(${bin} scr)
|
||||
- ENDIF(SCR_LINK_STATIC)
|
||||
INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${bin} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
ENDFOREACH(bin IN ITEMS ${cliscr_scr_bins})
|
||||
@@ -1,70 +0,0 @@
|
||||
From 3cb02f312447731b5a949aca388d43b651b53a0d Mon Sep 17 00:00:00 2001
|
||||
From: Alessandro Barbieri <lssndrbarbieri@gmail.com>
|
||||
Date: Sat, 30 Oct 2021 20:28:49 +0200
|
||||
Subject: [PATCH 1/2] build libscr_base.so
|
||||
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -94,8 +94,24 @@ SET_TARGET_PROPERTIES(scr-static PROPERTIES OUTPUT_NAME scr CLEAN_DIRECT_OUTPUT
|
||||
INSTALL(TARGETS scr-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
# Non-MPI library for CLI
|
||||
-ADD_LIBRARY(scr_base STATIC ${cliscr_noMPI_srcs})
|
||||
-TARGET_LINK_LIBRARIES(scr_base ${SCR_EXTERNAL_SERIAL_LIBS})
|
||||
+ADD_LIBRARY(cliscr_noMPI_o OBJECT ${cliscr_noMPI_srcs})
|
||||
+
|
||||
+IF(BUILD_SHARED_LIBS)
|
||||
+ ADD_LIBRARY(scr_base SHARED $<TARGET_OBJECTS:cliscr_noMPI_o>)
|
||||
+ TARGET_LINK_LIBRARIES(scr_base ${SCR_EXTERNAL_SERIAL_LIBS})
|
||||
+ SET_TARGET_PROPERTIES(scr_base PROPERTIES OUTPUT_NAME scr_base CLEAN_DIRECT_OUTPUT 1)
|
||||
+ INSTALL(TARGETS scr_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
+ENDIF(BUILD_SHARED_LIBS)
|
||||
+
|
||||
+ADD_LIBRARY(scr_base-static STATIC $<TARGET_OBJECTS:cliscr_noMPI_o>)
|
||||
+IF(SCR_LINK_STATIC)
|
||||
+ SET_TARGET_PROPERTIES(scr_base-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
+ SET_TARGET_PROPERTIES(scr_base-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
+ENDIF(SCR_LINK_STATIC)
|
||||
+TARGET_LINK_LIBRARIES(scr_base-static ${SCR_EXTERNAL_SERIAL_LIBS})
|
||||
+
|
||||
+SET_TARGET_PROPERTIES(scr_base-static PROPERTIES OUTPUT_NAME scr_base CLEAN_DIRECT_OUTPUT 1)
|
||||
+INSTALL(TARGETS scr_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
|
||||
# Fortran
|
||||
IF(ENABLE_FORTRAN)
|
||||
@@ -147,9 +163,13 @@ LIST(APPEND cliscr_c_bins
|
||||
|
||||
# Build and install C binaries
|
||||
FOREACH(bin IN ITEMS ${cliscr_c_bins})
|
||||
- ADD_EXECUTABLE(${bin} ${bin}.c)
|
||||
- TARGET_LINK_LIBRARIES(${bin} scr_base)
|
||||
- INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${bin} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
+ ADD_EXECUTABLE(${bin} ${bin}.c)
|
||||
+ IF(SCR_LINK_STATIC)
|
||||
+ TARGET_LINK_LIBRARIES(${bin} scr_base-static)
|
||||
+ ELSE(SCR_LINK_STATIC)
|
||||
+ TARGET_LINK_LIBRARIES(${bin} scr_base)
|
||||
+ ENDIF(SCR_LINK_STATIC)
|
||||
+ INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${bin} DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
ENDFOREACH(bin IN ITEMS ${cliscr_c_bins})
|
||||
|
||||
# Build and install CLI binaries that link full SCR library
|
||||
|
||||
From e3d50ca7cab309273f3195c71af14352059d83aa Mon Sep 17 00:00:00 2001
|
||||
From: Alessandro Barbieri <lssndrbarbieri@gmail.com>
|
||||
Date: Sat, 30 Oct 2021 20:55:07 +0200
|
||||
Subject: [PATCH 2/2] remove source files of cli binaries from library
|
||||
|
||||
to avoid `multiple definition of main`
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -32,9 +32,6 @@ LIST(APPEND cliscr_noMPI_srcs
|
||||
scr_meta.c
|
||||
scr_param.c
|
||||
scr_util.c
|
||||
- scr_rebuild_xor.c
|
||||
- scr_rebuild_partner.c
|
||||
- scr_rebuild_rs.c
|
||||
)
|
||||
|
||||
LIST(APPEND libscr_srcs
|
||||
@@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/LLNL/scr/issues</bugs-to>
|
||||
<remote-id type="github">LLNL/scr</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
The Scalable Checkpoint / Restart (SCR) library enables MPI applications to utilize distributed storage on Linux clusters to attain high file I/O bandwidth for checkpointing, restarting, and output in large-scale jobs. With SCR, jobs run more efficiently, recompute less work upon a failure, and reduce load on critical shared resources such as the parallel file system.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="fcntl">use fcntl as a file locking type</flag>
|
||||
<flag name="flock">use flock as a file locking type</flag>
|
||||
<flag name="fortran">Enables Fortran support</flag>
|
||||
<flag name="mysql">Enable use of mysql for logging SCR activities</flag>
|
||||
<flag name="slurm">use slurm as resource manager</flag>
|
||||
<flag name="syslog">Whether to enable syslog logging</flag>
|
||||
<flag name="txt-log">Whether to enable text file logging</flag>
|
||||
<flag name="yogrt">Enable use of yogrt for time remaining in a job allocation</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,123 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOCS_AUTODOC=0
|
||||
DOCS_BUILDER="sphinx"
|
||||
DOCS_DIR="${S}/doc/rst"
|
||||
FORTRAN_NEEDED="fortran"
|
||||
MYPV="${PV/_pre/rc}"
|
||||
PYTHON_COMPAT=( python3_{10..11} pypy3 )
|
||||
|
||||
inherit cmake python-single-r1 fortran-2 docs
|
||||
|
||||
DESCRIPTION="Scalable Checkpoint / Restart Library"
|
||||
HOMEPAGE="
|
||||
https://computing.llnl.gov/projects/scalable-checkpoint-restart-for-mpi
|
||||
https://github.com/LLNL/scr
|
||||
"
|
||||
SRC_URI="https://github.com/LLNL/scr/archive/refs/tags/v${MYPV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MYPV}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc examples fcntl +flock +fortran mysql slurm syslog test threads txt-log +yogrt"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
|
||||
app-shells/pdsh
|
||||
dev-libs/KVTree
|
||||
>=sys-cluster/AXL-0.5.0
|
||||
sys-cluster/dtcmp
|
||||
sys-cluster/er
|
||||
sys-cluster/rankstr
|
||||
sys-cluster/redset
|
||||
sys-cluster/spath
|
||||
sys-libs/zlib
|
||||
virtual/mpi
|
||||
|
||||
mysql? ( dev-db/mysql-connector-c )
|
||||
slurm? ( sys-cluster/slurm )
|
||||
yogrt? ( sys-cluster/libyogrt[slurm?] )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
app-admin/chrpath
|
||||
app-misc/pax-utils
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.0_pre2-shared-libscr_base.patch"
|
||||
"${FILESDIR}/${PN}-3.0_pre2-no-static.patch"
|
||||
"${FILESDIR}/${P}-add-YOGRT_LIBRARIES-to-SCR_EXTERNAL_SERIAL_LIBS.patch"
|
||||
)
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
|
||||
?? ( fcntl flock )
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
pkg_setup() {
|
||||
fortran-2_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local lock="NONE"
|
||||
use fcntl && lock="FCNTL"
|
||||
use flock && lock="FLOCK"
|
||||
|
||||
local log="0"
|
||||
use syslog && log="1"
|
||||
use txt-log && log="1"
|
||||
|
||||
local resman="NONE"
|
||||
use slurm && resman="SLURM"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_PDSH=OFF
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DENABLE_CRAY_DW=OFF
|
||||
-DENABLE_IBM_BBAPI=OFF
|
||||
-DENABLE_PDSH=ON
|
||||
-DSCR_LINK_STATIC=OFF
|
||||
|
||||
-DSCR_FILE_LOCK="${lock}"
|
||||
-DSCR_LOG_ENABLE="${log}"
|
||||
-DSCR_RESOURCE_MANAGER="${resman}"
|
||||
|
||||
-DENABLE_EXAMPLES=$(usex examples)
|
||||
-DENABLE_FORTRAN=$(usex fortran)
|
||||
-DENABLE_PTHREADS=$(usex threads)
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
-DENABLE_YOGRT=$(usex yogrt)
|
||||
-DSCR_LOG_SYSLOG_ENABLE=$(usex syslog 0 1)
|
||||
-DSCR_LOG_TXT_ENABLE=$(usex txt-log 0 1)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
docs_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
for i in $(scanelf -RBF %F "${ED}/usr/bin/") ; do
|
||||
chrpath -d "${i}" || die
|
||||
done
|
||||
# find "${ED}" -name '*.a' -delete || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if mountpoint -q /dev/shm ; then
|
||||
cmake_src_test
|
||||
else
|
||||
eerror "make sure to mount /dev/shm or tests will fail"
|
||||
die
|
||||
fi
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
DIST spath-0.1.0.tar.gz 25189 BLAKE2B b122e3606d226e610650c97f4e2809183af2b1fce6991f3d55c5652fac4b9fb2ddebc83efca5b10fa24a096e344639076c9be445548e0cc3e89cac6d3e69cd51 SHA512 77e8207e2d1fa62b12133237e9adccc15dcb72f96bf5abbf5883d85d9cde5fac36b39208e1ae30e4386acffea3b7f69aac8abda9ff1ad28cbd6ffac8ad1aac8e
|
||||
DIST spath-0.2.0.tar.gz 25160 BLAKE2B 502a4cf822edb6a8b13fa5178764ef1edb69d447fbb6859f882c1e2202720ea76b82488a094bb253cf76e5f2ddbb224bb7010f5eab3186049004fcd5529a89eb SHA512 4ee1e080749ed851c82ca58e67875987c050715a2471ee1d2c8af48a1236a05166fa5b26d0b927f99389bd4ca8b6d4133829108edfc9071162b80a25b8eaac0d
|
||||
@@ -1,33 +0,0 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -48,16 +48,6 @@
|
||||
INSTALL(TARGETS spath DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF(BUILD_SHARED_LIBS)
|
||||
|
||||
-ADD_LIBRARY(spath-static STATIC $<TARGET_OBJECTS:spath_o>)
|
||||
-IF(SPATH_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(SPATH_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(spath-static ${SPATH_EXTERNAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(spath-static PROPERTIES OUTPUT_NAME spath CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS spath-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
-
|
||||
# SPATH Library
|
||||
ADD_LIBRARY(spath_base_o OBJECT ${libspath_noMPI_srcs})
|
||||
|
||||
@@ -67,13 +57,3 @@
|
||||
SET_TARGET_PROPERTIES(spath_base PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1)
|
||||
INSTALL(TARGETS spath_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
ENDIF(BUILD_SHARED_LIBS)
|
||||
-
|
||||
-ADD_LIBRARY(spath_base-static STATIC $<TARGET_OBJECTS:spath_base_o>)
|
||||
-IF(SPATH_LINK_STATIC)
|
||||
- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_START_STATIC 1)
|
||||
- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_END_STATIC 1)
|
||||
-ENDIF(SPATH_LINK_STATIC)
|
||||
-TARGET_LINK_LIBRARIES(spath_base-static ${SPATH_SERIAL_LIBS})
|
||||
-
|
||||
-SET_TARGET_PROPERTIES(spath_base-static PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1)
|
||||
-INSTALL(TARGETS spath_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/ECP-VeloC/spath/issues</bugs-to>
|
||||
<remote-id type="github">ECP-VeloC/spath</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
The spath libary defines a data structure and a number of functions to manipulate paths, including combining, slicing, simplification, computing relative paths, and converting to/from character strings.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="slurm">Use <pkg>sys-cluster/slurm</pkg> as resource manager</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Path manipulation functions"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/spath"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+mpi slurm test"
|
||||
|
||||
RDEPEND="
|
||||
mpi? ( virtual/mpi )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( slurm? ( sys-cluster/slurm ) )
|
||||
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="
|
||||
test? ( mpi )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local vrm="NONE"
|
||||
use slurm && vrm="SLURM"
|
||||
export "VELOC_RESOURCE_MANAGER=${vrm}"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DSPATH_LINK_STATIC=OFF
|
||||
-DTVDISPLAY=OFF
|
||||
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
-DMPI=$(usex mpi)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Path manipulation functions"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/spath"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+mpi slurm test"
|
||||
|
||||
RDEPEND="mpi? ( virtual/mpi )"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( slurm? ( sys-cluster/slurm ) )
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.1.0-no-static.patch" )
|
||||
RESTRICT="test" # tests require an MPI setup
|
||||
REQUIRED_USE="test? ( mpi )"
|
||||
|
||||
src_configure() {
|
||||
local vrm="NONE"
|
||||
use slurm && vrm="SLURM"
|
||||
export "VELOC_RESOURCE_MANAGER=${vrm}"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DSPATH_LINK_STATIC=OFF
|
||||
-DTVDISPLAY=OFF
|
||||
|
||||
-DENABLE_TESTS=$(usex test)
|
||||
-DMPI=$(usex mpi)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST spectral-3.4.1-src.tar.bz2 318900 BLAKE2B 3a34f6ac66cd3ed7b7593df5b09151e041281c12c2ac17dba6ee17f82c75e64ca8f23dfc1e5ceba432f65abe4796fdbf40bd4ba4c069de3ca8fa1fd9215b8428 SHA512 5b6350cbc6800857d1eeec7b6061406e3d238c12078f90a1ab611f89865f4bf07ef01dd638d9f258e64dfeded3963bdb48fba142599c29b57ffbcb7a86ac72f4
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="extrae">Add <pkg>sys-cluster/extrae</pkg> support</flag>
|
||||
<flag name="libbsctools">Add <pkg>sys-cluster/libbsctools</pkg> support</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/bsc-performance-tools/spectral/issues</bugs-to>
|
||||
<remote-id type="github">bsc-performance-tools/spectral</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,56 +0,0 @@
|
||||
# Copyright 2019-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
DESCRIPTION="Signal processing to select representative regions from Paraver traces"
|
||||
HOMEPAGE="https://github.com/bsc-performance-tools/spectral"
|
||||
SRC_URI="https://ftp.tools.bsc.es/spectral/spectral-${PV}-src.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="extrae libbsctools openmp"
|
||||
|
||||
RDEPEND="
|
||||
sci-libs/fftw:3.0
|
||||
extrae? ( sys-cluster/extrae )
|
||||
libbsctools? ( sys-cluster/libbsctools )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
#PATCHES=( "${FILESDIR}/respect-flags.patch" )
|
||||
|
||||
src_configure() {
|
||||
#https://github.com/bsc-performance-tools/spectral/issues/1
|
||||
append-cflags -fcommon
|
||||
append-cxxflags -fcommon
|
||||
|
||||
local myconf=(
|
||||
--disable-static
|
||||
--enable-shared
|
||||
--with-fft="${EPREFIX}/usr"
|
||||
--with-pic
|
||||
|
||||
$(use_enable openmp)
|
||||
)
|
||||
|
||||
if use extrae; then
|
||||
myconf+=( "--with-extrae=${EPREFIX}/usr" )
|
||||
else
|
||||
myconf+=( "--without-extrae" )
|
||||
fi
|
||||
if use libbsctools; then
|
||||
myconf+=( "--with-libbsctools=${EPREFIX}/usr" )
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc ChangeLog README AUTHORS NEWS
|
||||
find "${ED}" -name '*.la' -delete || die
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST synapse-2.0.1.tar.gz 268657 BLAKE2B 19491c1b6c4c60318093d994594b1ebb541a4b1ca1fb9128a2361b06b1a58921a0bc41f8e43abcb62f379c97db6603c62cf1622c7caf6d3f5ee1b84e0f80963d SHA512 c08762f065275232f419cca181acc0e40a913724e1182def9a810ed9b45c1e9f2ddd8dddf0a2623576ad527585b2ecb60842d9fc8f5f0f680c2b391ba4ee1dea
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/config/macros.m4
|
||||
+++ b/config/macros.m4
|
||||
@@ -327,7 +327,7 @@
|
||||
dnl Check for libraries.
|
||||
AC_MSG_CHECKING([for libmrnet and libxplat])
|
||||
|
||||
- if test -f ${MRNET_LIBSDIR}/libmrnet.a -a -f ${MRNET_LIBSDIR}/libxplat.a ; then
|
||||
+ if test -f ${MRNET_LIBSDIR}/libmrnet.so -a -f ${MRNET_LIBSDIR}/libxplat.so ; then
|
||||
MRNET_LIBS="-lmrnet -lxplat -lpthread -ldl"
|
||||
MRNET_LIGHT_LIBS="-lmrnet_lightweight -lxplat_lightweight -lpthread -ldl"
|
||||
AC_SUBST(MRNET_LIBS)
|
||||
@@ -1,22 +0,0 @@
|
||||
--- a/test/Makefile.am
|
||||
+++ b/test/Makefile.am
|
||||
@@ -14,13 +14,9 @@
|
||||
test_BE_LDFLAGS = -L${top_srcdir}/src -lsynapse_backend -L@MRNET_LIBSDIR@ @MRNET_LIBS@
|
||||
|
||||
install-data-hook:
|
||||
- mkdir -p ${prefix}/example
|
||||
- cp ${test_FE_SOURCES} ${test_BE_SOURCES} ${prefix}/example
|
||||
- cp Makefile-example ${prefix}/example/Makefile
|
||||
- cp run-example ${prefix}/example/run.sh
|
||||
- cp topology_1x4.txt ${prefix}/example
|
||||
- chmod u+x ${prefix}/example/run.sh
|
||||
- $(top_srcdir)/substitute $(SED) "@sub_SYNAPSE_HOME@" "${prefix}" ${prefix}/example/Makefile
|
||||
- $(top_srcdir)/substitute $(SED) "@sub_SYNAPSE_HOME@" "${prefix}" ${prefix}/example/run.sh
|
||||
-
|
||||
-
|
||||
+ mkdir -p ${DESTDIR}/${prefix}/libexec/synapse/example
|
||||
+ cp ${noinst_PROGRAMS} ${DESTDIR}/${prefix}/libexec/synapse/example
|
||||
+ cp run-example ${DESTDIR}/${prefix}/libexec/synapse/example/run.sh
|
||||
+ cp topology_1x4.txt ${DESTDIR}/${prefix}/libexec/synapse/example
|
||||
+ chmod u+x ${DESTDIR}/${prefix}/libexec/synapse/example/run.sh
|
||||
+ $(top_srcdir)/substitute $(SED) "@sub_SYNAPSE_HOME@" "${prefix}" ${DESTDIR}/${prefix}/libexec/synapse/example/run.sh
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user