diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2012-05-30 00:29:47 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2012-05-30 00:29:47 +0000 |
commit | 4ab26957b8a4fbb404e5cacf597c070f04f33e52 (patch) | |
tree | a5d72b28b0410271af89629d168c4253c59d5be8 /dev-libs/starpu | |
parent | Version bump. Add patch for bug #402285. (diff) | |
download | gentoo-2-4ab26957b8a4fbb404e5cacf597c070f04f33e52.tar.gz gentoo-2-4ab26957b8a4fbb404e5cacf597c070f04f33e52.tar.bz2 gentoo-2-4ab26957b8a4fbb404e5cacf597c070f04f33e52.zip |
Initial import
(Portage version: 2.1.10.63/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/starpu')
-rw-r--r-- | dev-libs/starpu/ChangeLog | 13 | ||||
-rw-r--r-- | dev-libs/starpu/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/starpu/files/starpu-1.0.1-no-examples.patch | 90 | ||||
-rw-r--r-- | dev-libs/starpu/files/starpu-1.0.1-no-pc-ldflags.patch | 66 | ||||
-rw-r--r-- | dev-libs/starpu/files/starpu-1.0.1-respect-cflags.patch | 11 | ||||
-rw-r--r-- | dev-libs/starpu/files/starpu-1.0.1-system-blas.patch | 14 | ||||
-rw-r--r-- | dev-libs/starpu/metadata.xml | 20 | ||||
-rw-r--r-- | dev-libs/starpu/starpu-1.0.1.ebuild | 54 |
8 files changed, 276 insertions, 0 deletions
diff --git a/dev-libs/starpu/ChangeLog b/dev-libs/starpu/ChangeLog new file mode 100644 index 000000000000..5bf25022904b --- /dev/null +++ b/dev-libs/starpu/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for dev-libs/starpu +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/starpu/ChangeLog,v 1.1 2012/05/30 00:29:47 bicatali Exp $ + +*starpu-1.0.1 (30 May 2012) + + 30 May 2012; Sébastien Fabbro <bicatali@gentoo.org> +starpu-1.0.1.ebuild, + +files/starpu-1.0.1-no-examples.patch, + +files/starpu-1.0.1-no-pc-ldflags.patch, + +files/starpu-1.0.1-respect-cflags.patch, + +files/starpu-1.0.1-system-blas.patch, +metadata.xml: + Initial import + diff --git a/dev-libs/starpu/Manifest b/dev-libs/starpu/Manifest new file mode 100644 index 000000000000..3b482c3314a4 --- /dev/null +++ b/dev-libs/starpu/Manifest @@ -0,0 +1,8 @@ +AUX starpu-1.0.1-no-examples.patch 2747 RMD160 e41d991a9836047279e6f2ef73c6b77770dc2a9c SHA1 9afeb62eaf3f69ca30818fd90abdedebaf3c84ce SHA256 d2b9ca734d1899886535b4ba8a708f0eb7babcc281df56e279f69c3fd7b54dbb +AUX starpu-1.0.1-no-pc-ldflags.patch 3140 RMD160 a02302b26a08cd32ef526b28326b8a6c9298e3bb SHA1 cc3cd0c82a286c9bae345c93fe8837973367175c SHA256 2b04db9b674cfaa62fe58ba249142fdb4504af118243578409ea4b8acf4fa42d +AUX starpu-1.0.1-respect-cflags.patch 315 RMD160 a97b0d368602d1b30778a010b50a9bf69125c70f SHA1 2652088b81f057ae82d8040fe1ae3df9cd571813 SHA256 d60e965bed159356bddff59a261266fc2a36d3b0f35f64b6e4666a777d134751 +AUX starpu-1.0.1-system-blas.patch 524 RMD160 d1e30fff5a640ba979300c539e9a5ae00a4b56b5 SHA1 8b83e99c04ac1fd263d8a63d60f75be4d0b8cd54 SHA256 9f66121d2fde8b694b1f1fdb16cfca59b8f70e60cbf609bcf829333e2c237e30 +DIST starpu-1.0.1.tar.gz 3003333 RMD160 9c0da2a6b1571f0e4ef5f711198ae8738e1ab41f SHA1 944a7d60bbef8e0fa67cc33d8b59a64b29389ab7 SHA256 8cb78a4a2b2eec8ce55aca7917ab6db3fd34d0e5ba2f3eedb1dff8daf20d7165 +EBUILD starpu-1.0.1.ebuild 1303 RMD160 f11a7e17476541f19033a22a119cb969585efc55 SHA1 baef052ca74e1a5d37609aa34a64f4ee9754bf28 SHA256 d52eba78504aa699ec2dcb4d5f82b4975779922069a0c0d3755a4239e56e1237 +MISC ChangeLog 424 RMD160 e456b5d07850379bae86e2bb3e1a1fec9329929f SHA1 e43d0ba3a4f4cc0577c81891ed780f2a09967d3b SHA256 fa0b6c536694c3a1d5b6fa6ef572d5d692e5c1830d7391e9e56629a0bb0eb3d9 +MISC metadata.xml 814 RMD160 e8ea5b9a38c07ecca3374d1ce1deeff1da815c8c SHA1 95bb921135139d4680aafa5d42d2f7106b2f50dc SHA256 77332cbdaf980b14f6b3c85738e3701bfb970d8e57c2830714eeb17ae2bd717e diff --git a/dev-libs/starpu/files/starpu-1.0.1-no-examples.patch b/dev-libs/starpu/files/starpu-1.0.1-no-examples.patch new file mode 100644 index 000000000000..81243f242c19 --- /dev/null +++ b/dev-libs/starpu/files/starpu-1.0.1-no-examples.patch @@ -0,0 +1,90 @@ +--- Makefile.am.orig 2012-05-29 23:16:20.000000000 +0100 ++++ Makefile.am 2012-05-30 00:57:47.000000000 +0100 +@@ -28,7 +28,9 @@ + SUBDIRS += socl + endif + ++if BUILD_EXAMPLES + SUBDIRS += examples ++endif + + if BUILD_GCC_PLUGIN + SUBDIRS += gcc-plugin +--- gcc-plugin/Makefile.am.orig 2012-05-29 23:16:20.000000000 +0100 ++++ gcc-plugin/Makefile.am 2012-05-30 00:59:39.000000000 +0100 +@@ -13,7 +13,10 @@ + # + # See the GNU Lesser General Public License in COPYING.LGPL for more details. + +-SUBDIRS = src tests examples ++SUBDIRS = src tests ++if BUILD_EXAMPLES ++SUBDIRS += examples ++endif + + EXTRA_DIST = COPYING README ChangeLog + +--- configure.ac.orig 2012-05-29 23:30:19.000000000 +0100 ++++ configure.ac 2012-05-30 01:17:48.000000000 +0100 +@@ -1312,6 +1312,11 @@ + # # + ############################################################################### + ++AC_ARG_ENABLE(build-examples, [AS_HELP_STRING([--enable-build-examples], ++ [enable building of examples])], ++ enable_build_examples=$enableval, enable_build_examples=no) ++# check stuff for examples (todo) ++AM_CONDITIONAL(BUILD_EXAMPLES, [test x$enable_build_examples != xno]) + AC_ARG_ENABLE(opengl-render, [AS_HELP_STRING([--enable-opengl-render], + [enable OpenGL rendering of some examples])], + enable_opengl_render=$enableval, enable_opengl_render=no) +@@ -1434,6 +1439,11 @@ + if test x$use_system_blas = xyes; then + AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use refblas library]) + blas_lib=system ++ elif test x"$BLAS_LIBS" != x; then ++ AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use user defined library]) ++ STARPU_BLAS_LDFLAGS="$BLAS_LIBS" ++ AC_SUBST(STARPU_BLAS_LDFLAGS) ++ blas_lib=system + else + blas_lib=none + fi +--- mpi/Makefile.a.origm 2012-05-29 23:16:20.000000000 +0100 ++++ mpi/Makefile.am 2012-05-30 01:20:49.000000000 +0100 +@@ -94,7 +94,7 @@ + ################### + # Stencil example # + ################### +- ++if BUILD_EXAMPLES + examplebin_PROGRAMS += \ + examples/stencil/stencil5 + +@@ -202,7 +202,7 @@ + + check_PROGRAMS += \ + examples/reduction/mpi_reduction +- ++endif + ######################## + # Unit testcases # + ######################## +--- starpufft/Makefile.am.orig 2012-05-29 23:16:20.000000000 +0100 ++++ starpufft/Makefile.am 2012-05-30 01:23:40.000000000 +0100 +@@ -67,10 +67,13 @@ + endif + + examplebindir = $(libdir)/starpu/examples/starpufft +-examplebin_PROGRAMS = \ ++ ++examplebin_PROGRAMS = ++if BUILD_EXAMPLES ++examplebin_PROGRAMS += \ + examples/testf \ + examples/test +- ++endif + check_PROGRAMS = examples/testf + examples_testf_LDADD = libstarpufft-@STARPU_EFFECTIVE_VERSION@.la $(top_builddir)/src/libstarpu-@STARPU_EFFECTIVE_VERSION@.la $(FFTWF_LIBS) + diff --git a/dev-libs/starpu/files/starpu-1.0.1-no-pc-ldflags.patch b/dev-libs/starpu/files/starpu-1.0.1-no-pc-ldflags.patch new file mode 100644 index 000000000000..debf6783c137 --- /dev/null +++ b/dev-libs/starpu/files/starpu-1.0.1-no-pc-ldflags.patch @@ -0,0 +1,66 @@ +--- libstarpu.pc.in.orig 2012-05-29 23:16:20.000000000 +0100 ++++ libstarpu.pc.in 2012-05-30 01:09:41.000000000 +0100 +@@ -24,6 +24,6 @@ + Version: @PACKAGE_VERSION@ + Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_CPPFLAGS@ -DSTARPU_USE_DEPRECATED_API + Libs: -L${libdir} -lstarpu-@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_LDFLAGS@ @STARPU_OPENCL_LDFLAGS@ +-Libs.private: @LDFLAGS@ @LIBS@ ++Libs.private: @LIBS@ + Requires: @HWLOC_REQUIRES@ + Requires.private: @GORDON_REQUIRES@ +--- mpi/libstarpumpi.pc.in.orig 2012-05-29 23:16:20.000000000 +0100 ++++ mpi/libstarpumpi.pc.in 2012-05-30 01:09:53.000000000 +0100 +@@ -24,6 +24,6 @@ + Version: @PACKAGE_VERSION@ + Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@ -DSTARPU_USE_DEPRECATED_API + Libs: -L${libdir} -lstarpumpi-@STARPU_EFFECTIVE_VERSION@ +-Libs.private: @LDFLAGS@ @LIBS@ ++Libs.private: @LIBS@ + Requires: libstarpu + Requires.private: +--- mpi/starpumpi-1.0.pc.in.orig 2012-05-29 23:16:20.000000000 +0100 ++++ mpi/starpumpi-1.0.pc.in 2012-05-30 01:10:11.000000000 +0100 +@@ -24,6 +24,6 @@ + Version: @PACKAGE_VERSION@ + Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@ + Libs: -L${libdir} -lstarpumpi-@STARPU_EFFECTIVE_VERSION@ +-Libs.private: @LDFLAGS@ @LIBS@ ++Libs.private: @LIBS@ + Requires: starpu-1.0 + Requires.private: +--- starpufft/starpufft-1.0.pc.in.orig 2012-05-29 23:16:20.000000000 +0100 ++++ starpufft/starpufft-1.0.pc.in 2012-05-30 01:10:25.000000000 +0100 +@@ -24,4 +24,4 @@ + Version: @PACKAGE_VERSION@ + Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_CPPFLAGS@ + Libs: -L${libdir} -lstarpufft-@STARPU_EFFECTIVE_VERSION@ +-Libs.private: @LDFLAGS@ @LIBS@ @STARPU_CUFFT_LDFLAGS@ @FFTW_LIBS@ @FFTWF_LIBS@ ++Libs.private: @LIBS@ @STARPU_CUFFT_LDFLAGS@ @FFTW_LIBS@ @FFTWF_LIBS@ +--- starpufft/libstarpufft.pc.in.orig 2012-05-29 23:16:20.000000000 +0100 ++++ starpufft/libstarpufft.pc.in 2012-05-30 01:10:43.000000000 +0100 +@@ -24,4 +24,4 @@ + Version: @PACKAGE_VERSION@ + Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_CPPFLAGS@ -DSTARPU_USE_DEPRECATED_API + Libs: -L${libdir} -lstarpufft-@STARPU_EFFECTIVE_VERSION@ +-Libs.private: @LDFLAGS@ @LIBS@ @STARPU_CUFFT_LDFLAGS@ @FFTW_LIBS@ @FFTWF_LIBS@ ++Libs.private: @LIBS@ @STARPU_CUFFT_LDFLAGS@ @FFTW_LIBS@ @FFTWF_LIBS@ +--- starpu-1.0.pc.in.orig 2012-05-29 23:16:20.000000000 +0100 ++++ starpu-1.0.pc.in 2012-05-30 01:11:06.000000000 +0100 +@@ -30,6 +30,6 @@ + Version: @PACKAGE_VERSION@ + Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_CPPFLAGS@ + Libs: -L${libdir} -lstarpu-@STARPU_EFFECTIVE_VERSION@ @STARPU_CUDA_LDFLAGS@ @STARPU_OPENCL_LDFLAGS@ +-Libs.private: @LDFLAGS@ @LIBS@ ++Libs.private: @LIBS@ + Requires: @HWLOC_REQUIRES@ + Requires.private: @GORDON_REQUIRES@ +--- socl/socl-1.0.pc.in.orig 2012-05-29 23:16:20.000000000 +0100 ++++ socl/socl-1.0.pc.in 2012-05-30 01:11:19.000000000 +0100 +@@ -24,6 +24,6 @@ + Version: @PACKAGE_VERSION@ + Cflags: -I${includedir}/starpu/@STARPU_EFFECTIVE_VERSION@/socl + Libs: -L${libdir} -lsocl-@STARPU_EFFECTIVE_VERSION@ +-Libs.private: @LDFLAGS@ @LIBS@ ++Libs.private: @LIBS@ + Requires: starpu-1.0 + Requires.private: diff --git a/dev-libs/starpu/files/starpu-1.0.1-respect-cflags.patch b/dev-libs/starpu/files/starpu-1.0.1-respect-cflags.patch new file mode 100644 index 000000000000..4f2a8d3070b0 --- /dev/null +++ b/dev-libs/starpu/files/starpu-1.0.1-respect-cflags.patch @@ -0,0 +1,11 @@ +--- configure.ac.orig 2012-05-29 23:16:20.000000000 +0100 ++++ configure.ac 2012-05-29 23:20:48.000000000 +0100 +@@ -773,8 +773,6 @@ + if test x$enable_debug = xyes; then + CFLAGS="$CFLAGS -O0" + AC_DEFINE(STARPU_SPINLOCK_CHECK, [1], [check spinlock use]) +-else +- CFLAGS="$CFLAGS -O3" + fi + CFLAGS+=" -gdwarf-2 -g3 " + diff --git a/dev-libs/starpu/files/starpu-1.0.1-system-blas.patch b/dev-libs/starpu/files/starpu-1.0.1-system-blas.patch new file mode 100644 index 000000000000..138c7f4d2d54 --- /dev/null +++ b/dev-libs/starpu/files/starpu-1.0.1-system-blas.patch @@ -0,0 +1,14 @@ +--- starpu-1.0.1/configure.ac.orig 2012-05-29 23:30:19.000000000 +0100 ++++ starpu-1.0.1/configure.ac 2012-05-30 00:02:22.000000000 +0100 +@@ -1434,6 +1434,11 @@ + if test x$use_system_blas = xyes; then + AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use refblas library]) + blas_lib=system ++ elif test x"$BLAS_LIBS" != x; then ++ AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use user defined library]) ++ STARPU_BLAS_LDFLAGS="$BLAS_LIBS" ++ AC_SUBST(STARPU_BLAS_LDFLAGS) ++ blas_lib=system + else + blas_lib=none + fi diff --git a/dev-libs/starpu/metadata.xml b/dev-libs/starpu/metadata.xml new file mode 100644 index 000000000000..e5d9fe12c2fb --- /dev/null +++ b/dev-libs/starpu/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>bicatali@gentoo.org</email> +</maintainer> +<longdescription lang='en'> + StarPU is a runtime system that offers support for heterogeneous + multicore machines. While many efforts are devoted to design efficient + computation kernels for those architectures (e.g. to implement BLAS + kernels on GPUs or on Cell's SPUs), StarPU not only takes care of + offloading such kernels (and implementing data coherency across + the machine), but it also makes sure the kernels are executed as + efficiently as possible. +</longdescription> +<use> + <flag name="cuda">Enable NVIDIA CUDA toolkit support</flag> + <flag name="opencl">Enable OpenCL support</flag> +</use> +</pkgmetadata> diff --git a/dev-libs/starpu/starpu-1.0.1.ebuild b/dev-libs/starpu/starpu-1.0.1.ebuild new file mode 100644 index 000000000000..8ca011edf995 --- /dev/null +++ b/dev-libs/starpu/starpu-1.0.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/starpu/starpu-1.0.1.ebuild,v 1.1 2012/05/30 00:29:47 bicatali Exp $ + +EAPI=4 + +AUTOTOOLS_AUTORECONF=1 +inherit autotools-utils + +PID=30852 + +DESCRIPTION="Unified runtime system for heterogeneous multicore architectures" +HOMEPAGE="http://runtime.bordeaux.inria.fr/StarPU/" +SRC_URI="https://gforge.inria.fr/frs/download.php/${PID}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="blas cuda fftw mpi opencl qt4 static-libs" +RDEPEND="sys-apps/hwloc + sci-mathematics/glpk + blas? ( virtual/blas ) + cuda? ( dev-util/nvidia-cuda-toolkit ) + fftw? ( sci-libs/fftw:3.0 ) + mpi? ( virtual/mpi ) + opencl? ( virtual/opencl ) + qt4? ( >=x11-libs/qt-gui-4.7 + >=x11-libs/qt-opengl-4.7 + >=x11-libs/qt-sql-4.7 + x11-libs/qwt )" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-respect-cflags.patch + "${FILESDIR}"/${P}-system-blas.patch + "${FILESDIR}"/${P}-no-examples.patch + "${FILESDIR}"/${P}-no-pc-ldflags.patch +) + +src_configure() { + use blas && export BLAS_LIBS="$(pkg-config --libs blas)" + myeconfargs+=( + --disable-gcc-extensions + $(use_enable cuda) + $(use_enable fftw starpufft) + $(use_enable opencl) + $(use_enable qt4 starpu-top) + $(use_with mpi mpicc "$(type -P mpicc)") + ) + autotools-utils_src_configure +} |