summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorWilliam PC <w_calandrini[at]hotmail[dot]com>2022-09-30 23:43:13 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-01 09:01:16 +0700
commitf36514a19e4cf06884a960fb986b6325d69ce18a (patch)
tree07c34880b1a0a68c6741bf31ddf52a96e018106f /libraries
parentb007d9bbe9c91466ad22e0ca81ff05858f3236dd (diff)
downloadslackbuilds-f36514a19e4cf06884a960fb986b6325d69ce18a.tar.gz
libraries/parsec: Added (Runtime Scheduler/Execution Controller)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/parsec/README17
-rw-r--r--libraries/parsec/parsec.SlackBuild119
-rw-r--r--libraries/parsec/parsec.info10
-rw-r--r--libraries/parsec/slack-desc19
4 files changed, 165 insertions, 0 deletions
diff --git a/libraries/parsec/README b/libraries/parsec/README
new file mode 100644
index 0000000000..81f2e5c498
--- /dev/null
+++ b/libraries/parsec/README
@@ -0,0 +1,17 @@
+ PaRSEC is a generic framework for architecture aware scheduling and
+management of micro-tasks on distributed many-core heterogeneous
+architectures. Applications are 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 between nodes as well as between host and
+accelerators (like GPUs). It achieves these features by using a
+dynamic, fully-distributed scheduler based on architectural features
+such as NUMA nodes and GPU awareness, as well as algorithmic features
+such as data reuse.
+
+Requires an MPI implementation either MPICH2 or OpenMPI.
+
+Optional requirements:
+ - hwloc (autodetect)
+ - PAPI (autodetect)
+ - NVidia CUDA (autodetect)
diff --git a/libraries/parsec/parsec.SlackBuild b/libraries/parsec/parsec.SlackBuild
new file mode 100644
index 0000000000..cfa349f537
--- /dev/null
+++ b/libraries/parsec/parsec.SlackBuild
@@ -0,0 +1,119 @@
+#!/bin/bash
+
+# Slackware build script for PaRSEC
+
+# Copyright 2022 William PC, Seattle, USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=parsec
+VERSION=${VERSION:-3.0.2012}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-parsec-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-parsec-$VERSION
+
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# not working: "doxygen missing components: dot"
+if [ "${DOC:-no}" == "yes" ]; then
+ OPT_BUILD="--enable-doc"
+fi
+
+mkdir builddir && cd builddir
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+../configure \
+ --prefix=/usr \
+ --disable-static \
+ --without-ninja \
+ $OPT_BUILD
+
+make
+make install DESTDIR=$PKG
+
+cd ..
+
+# Don't ship .la files:
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+find $PKG -depth -type d -empty -delete || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a {AUTHORS,CONTRIBUTING.md,License.txt,NEWS,README} $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/libraries/parsec/parsec.info b/libraries/parsec/parsec.info
new file mode 100644
index 0000000000..d2e2e1bdc0
--- /dev/null
+++ b/libraries/parsec/parsec.info
@@ -0,0 +1,10 @@
+PRGNAM="parsec"
+VERSION="3.0.2012"
+HOMEPAGE="https://github.com/ICLDisco/parsec"
+DOWNLOAD="https://github.com/ICLDisco/parsec/archive/refs/tags/parsec-3.0.2012.tar.gz"
+MD5SUM="1274f12976fd9246179d2ecd9966d53f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="openmpi"
+MAINTAINER="William PC"
+EMAIL="w_calandrini[at]hotmail[dot]com"
diff --git a/libraries/parsec/slack-desc b/libraries/parsec/slack-desc
new file mode 100644
index 0000000000..18caf5bab3
--- /dev/null
+++ b/libraries/parsec/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+parsec: parsec (Parallel Runtime Scheduler and Execution Controller)
+parsec:
+parsec:
+parsec: PaRSEC: the Parallel Runtime Scheduler and Execution Controller
+parsec: for micro-tasks on distributed heterogeneous systems.
+parsec:
+parsec: PaRSEC is a generic framework for architecture aware scheduling
+parsec: and management of micro-tasks on distributed many-core heterogeneous
+parsec: architectures.
+parsec:
+parsec: