summaryrefslogtreecommitdiff
path: root/sci-libs/mkl-rt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-10 23:40:16 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-10 23:40:16 +0100
commit51af5f0eb4cddbe6aa7953717873691d77aae9ff (patch)
tree1541525274162b033ebbc3ed38abaf335fbbd49a /sci-libs/mkl-rt
parent7014a5a3ea0feffab9701fdd6b64cc7667a985af (diff)
gentoo resync : 11.07.2019
Diffstat (limited to 'sci-libs/mkl-rt')
-rw-r--r--sci-libs/mkl-rt/Manifest3
-rw-r--r--sci-libs/mkl-rt/metadata.xml25
-rw-r--r--sci-libs/mkl-rt/mkl-rt-2019.4.243.ebuild81
3 files changed, 109 insertions, 0 deletions
diff --git a/sci-libs/mkl-rt/Manifest b/sci-libs/mkl-rt/Manifest
new file mode 100644
index 000000000000..c639b882ecb7
--- /dev/null
+++ b/sci-libs/mkl-rt/Manifest
@@ -0,0 +1,3 @@
+DIST mkl-rt-2019.4.243.tar.bz2 213996111 BLAKE2B 04c04cd521d73b9c51341f60e69f41e3093403dcace370f2379db2cbceadcd3d64f6c06b25f8ffcbec31edbf0f0a46a9e454450e7f282cf91436093e770ea207 SHA512 a1f33806de2e1437cd3c1de088cbf117a5a3c41cf5f0003f680385d51c793d745229ec8fbd6587f03acfd25b7973912fdffbc0cf1f2360063edf2f4b0df0aa9d
+EBUILD mkl-rt-2019.4.243.ebuild 2826 BLAKE2B b9be7077728d1c7ed8117dc4fb162ea981a4229be7dd70fd38b7f1bf52896c09262ba3887e7d081f16e5dbcf20ccdfc107a4cdc1eb550796a54421492bafb864 SHA512 8b736357200e6472f618bbbdf3c347029f23a75dca26aa32996e8d408663c0328b52c1398b81b28339a4ab224f96a7c79e224738ebe89686168c4e5cad0279b6
+MISC metadata.xml 730 BLAKE2B f81fa24d633cc68db2f1c29a6370f460e86ec5c5d28678853db0274078be89320fa16f935e9a197b21289697a6f7877af478e37dad70bfd4052d3f7f95271685 SHA512 e77c975f8c7d99c831ef0ec5fa41a0debdb5c706ef2ec30d3bfe0fe6ba64c77f754538e12030c999cfc9d6436c272fd9f136bf39913489db3e4d702a6301bec9
diff --git a/sci-libs/mkl-rt/metadata.xml b/sci-libs/mkl-rt/metadata.xml
new file mode 100644
index 000000000000..9798851ed06c
--- /dev/null
+++ b/sci-libs/mkl-rt/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+
+ <upstream>
+ <doc>https://software.intel.com/en-us/mkl</doc>
+ </upstream>
+
+ <maintainer type="person">
+ <name>Mo Zhou</name>
+ <email>lumin@debian.org</email>
+ </maintainer>
+
+ <longdescription>
+ Intel® Math Kernel Library (Intel® MKL) optimizes code with minimal
+ effort for future generations of Intel® processors. It is compatible
+ with your choice of compilers, languages, operating systems, and
+ linking and threading models.
+ </longdescription>
+
+ <use>
+ <flag name="eselect-ldso">Enable runtime library switching by eselect and ld.so.</flag>
+ </use>
+
+</pkgmetadata>
diff --git a/sci-libs/mkl-rt/mkl-rt-2019.4.243.ebuild b/sci-libs/mkl-rt/mkl-rt-2019.4.243.ebuild
new file mode 100644
index 000000000000..5d2b0f31b254
--- /dev/null
+++ b/sci-libs/mkl-rt/mkl-rt-2019.4.243.ebuild
@@ -0,0 +1,81 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit eutils
+
+DESCRIPTION="Intel Math Kernel Library (Runtime)"
+HOMEPAGE="https://software.intel.com/en-us/mkl"
+SRC_URI="https://repo.continuum.io/pkgs/main/linux-64/mkl-2019.4-243.tar.bz2 -> ${P}.tar.bz2"
+
+LICENSE="ISSL" # https://software.intel.com/en-us/mkl/license-faq
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="eselect-ldso"
+
+# MKL uses Intel/LLVM OpenMP by default.
+# One can change the threadding layer to "gnu" or "tbb" through the MKL_THREADING_LAYER env var.
+RDEPEND="
+eselect-ldso? ( !app-eselect/eselect-cblas
+ >=app-eselect/eselect-blas-0.2 )
+sys-libs/libomp"
+
+DEPEND=""
+
+S=${WORKDIR}
+
+src_install () {
+ insinto /usr/$(get_libdir)/
+ doins lib/*.so
+
+ if use eselect-ldso; then
+ dodir /usr/$(get_libdir)/blas/mkl-rt
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/blas/mkl-rt/libblas.so
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/blas/mkl-rt/libblas.so.3
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/blas/mkl-rt/libcblas.so
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/blas/mkl-rt/libcblas.so.3
+ dosym ../../libomp.so usr/$(get_libdir)/blas/mkl-rt/libiomp5.so
+ dodir /usr/$(get_libdir)/lapack/mkl-rt
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/lapack/mkl-rt/liblapack.so
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/lapack/mkl-rt/liblapack.so.3
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/lapack/mkl-rt/liblapacke.so
+ dosym ../../libmkl_rt.so usr/$(get_libdir)/lapack/mkl-rt/liblapacke.so.3
+ dosym ../../libomp.so usr/$(get_libdir)/lapack/mkl-rt/libiomp5.so
+ fi
+}
+
+pkg_postinst () {
+ use eselect-ldso || return
+ local libdir=$(get_libdir) me="mkl-rt"
+
+ # check blas
+ eselect blas add ${libdir} "${EROOT}"/usr/${libdir}/blas/${me} ${me}
+ local current_blas=$(eselect blas show ${libdir} | cut -d' ' -f2)
+ if [[ ${current_blas} == "${me}" || -z ${current_blas} ]]; then
+ eselect blas set ${libdir} ${me}
+ elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+ else
+ elog "Current eselect: BLAS/CBLAS ($libdir) -> [${current_blas}]."
+ elog "To use blas [${me}] implementation, you have to issue (as root):"
+ elog "\t eselect blas set ${libdir} ${me}"
+ fi
+
+ # check lapack
+ eselect lapack add ${libdir} "${EROOT}"/usr/${libdir}/lapack/${me} ${me}
+ local current_lapack=$(eselect lapack show ${libdir} | cut -d' ' -f2)
+ if [[ ${current_lapack} == "${me}" || -z ${current_lapack} ]]; then
+ eselect lapack set ${libdir} ${me}
+ elog "Current eselect: LAPACK ($libdir) -> [${current_blas}]."
+ else
+ elog "Current eselect: LAPACK ($libdir) -> [${current_blas}]."
+ elog "To use lapack [${me}] implementation, you have to issue (as root):"
+ elog "\t eselect lapack set ${libdir} ${me}"
+ fi
+}
+
+pkg_postrm () {
+ if use eselect-ldso; then
+ eselect blas validate
+ eselect lapack validate
+ fi
+}