From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D74A2138359 for ; Fri, 25 Sep 2020 02:33:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2AB7E0823; Fri, 25 Sep 2020 02:33:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8DE29E0822 for ; Fri, 25 Sep 2020 02:33:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD0F9340B98 for ; Fri, 25 Sep 2020 02:33:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 61E7F2E1 for ; Fri, 25 Sep 2020 02:33:45 +0000 (UTC) From: "Aisha Tammy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aisha Tammy" Message-ID: <1601000902.8341f9088a14e1d65b20a59c6386ba2e46675f22.epsilon-0@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/arrayfire/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/arrayfire/arrayfire-3.7.2.ebuild sci-libs/arrayfire/metadata.xml X-VCS-Directories: sci-libs/arrayfire/ X-VCS-Committer: epsilon-0 X-VCS-Committer-Name: Aisha Tammy X-VCS-Revision: 8341f9088a14e1d65b20a59c6386ba2e46675f22 X-VCS-Branch: master Date: Fri, 25 Sep 2020 02:33:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8f7f2acf-76fa-4d97-82cf-8e6c3dd2d6e3 X-Archives-Hash: 5d71fc2459c0f2374aa1cb7a34686087 commit: 8341f9088a14e1d65b20a59c6386ba2e46675f22 Author: Aisha Tammy aisha cc> AuthorDate: Fri Sep 25 02:28:12 2020 +0000 Commit: Aisha Tammy aisha cc> CommitDate: Fri Sep 25 02:28:22 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8341f908 sci-libs/arrayfire: version bump to 3.7.2 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Aisha Tammy aisha.cc> sci-libs/arrayfire/arrayfire-3.7.2.ebuild | 98 +++++++++++++++++++++++++++++++ sci-libs/arrayfire/metadata.xml | 40 +++++-------- 2 files changed, 112 insertions(+), 26 deletions(-) diff --git a/sci-libs/arrayfire/arrayfire-3.7.2.ebuild b/sci-libs/arrayfire/arrayfire-3.7.2.ebuild new file mode 100644 index 000000000..2cc60ed29 --- /dev/null +++ b/sci-libs/arrayfire/arrayfire-3.7.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake multilib +CMAKE_BUILD_TYPE=Release + +DESCRIPTION="general purpose GPU library" +HOMEPAGE="https://www.arrayfire.com/" +SRC_URI="https://github.com/arrayfire/arrayfire/releases/download/v${PV}/${PN}-full-${PV}.tar.bz2 -> ${P}.tar.bz2" +S="${WORKDIR}"/${PN}-full-${PV} +BUILD_DIR="${S}/build" + +KEYWORDS="~amd64" + +LICENSE="BSD nonfree? ( OpenSIFT )" +SLOT="0" +IUSE="examples +cache cuda doc mkl nonfree opencl test +trace" +RESTRICT="bindist mirror !test? ( test )" + +RDEPEND=" + media-libs/freeimage + media-libs/glbinding + >=media-libs/glfw-3.1 + ~sci-visualization/forge-1.0.5 + virtual/blas + virtual/cblas + virtual/lapacke + sci-libs/fftw:3.0 + cuda? ( + >=dev-util/nvidia-cuda-toolkit-9.0.0 + dev-libs/boost + ) + opencl? ( + >=dev-libs/boost-1.70.0 + >=sci-libs/clblas-2.4 + >=sci-libs/clfft-2.6.1 + virtual/opencl + ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( app-doc/doxygen ) + virtual/pkgconfig +" + +# We need write acccess /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm and the portage +# user is (usually) not in the video group +RESTRICT="userpriv" + +src_unpack() { + default + + if ! use nonfree; then + find "${WORKDIR}" -name "*_nonfree*" -delete || die + fi +} + +src_configure() { + if use cuda; then + addwrite /dev/nvidiactl + addwrite /dev/nvidia0 + addwrite /dev/nvidia-uvm + fi + + # forge headers are needed, so submodule + # has to stay, hence a ~ on forge dependency + local mycmakeargs=( + -DAF_BUILD_CPU=ON + -DAF_BUILD_CUDA="$(usex cuda)" + -DAF_BUILD_OPENCL="$(usex opencl)" + -DAF_BUILD_UNIFIED=ON + -DAF_BUILD_DOCS="$(usex doc)" + -DAF_BUILD_EXAMPLES="$(usex examples)" + -DAF_WITH_CUDNN="$(usex cuda)" + -DAF_BUILD_FORGE=OFF + -DAF_WITH_NONFREE="$(usex nonfree)" + -DAF_WITH_LOGGING=ON + -DAF_WITH_STACKTRACE="$(usex trace)" + -DAF_CACHE_KERNELS_TO_DISK="$(usex cache)" + -DAF_WITH_STATIC_MKL="$(usex mkl)" + -DAF_INSTALL_STANDALONE=OFF + -DAF_WITH_STATIC_FREEIMAGE=OFF + -DAF_INSTALL_CMAKE_DIR=/usr/$(get_libdir)/cmake/ArrayFire + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + dodoc -r "${ED}"/usr/LICENSES + rm -r "${ED}"/usr/LICENSES || die + + dodir /usr/bin + dobin "${BUILD_DIR}"/bin2cpp +} diff --git a/sci-libs/arrayfire/metadata.xml b/sci-libs/arrayfire/metadata.xml index 9048a1aeb..a45aaf1e4 100644 --- a/sci-libs/arrayfire/metadata.xml +++ b/sci-libs/arrayfire/metadata.xml @@ -2,39 +2,27 @@ - marbre@linux.sungazer.de - Marius Brehler + gentoo@aisha.cc + Aisha Tammy sci@gentoo.org Gentoo Science Project -ArrayFire is a high performance software library for parallel -computing with an easy-to-use API. Its array based function set -makes parallel programming simple. ArrayFire's multiple backends -(CUDA, OpenCL and native CPU) make it platform independent and -highly portable. - + ArrayFire is a high performance software library for parallel + computing with an easy-to-use API. Its array based function set + makes parallel programming simple. ArrayFire's multiple backends + (CUDA, OpenCL and native CPU) make it platform independent and + highly portable. + - -Build CPU backend. - - -Build CUDA backend. - - -Build OpenCL backend. - - -Build ArrayFire nonfree algorithms. - - -Build with Forge graphics. - - -Build Backend-Independent API. - + cache kernals to disk. + Build CUDA backend. + Build against static MKL. + build. + build OpenCL backend. + enable additional traces during logging. google/googletest