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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 44C7D158020 for ; Sat, 10 Dec 2022 18:27:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90CDFE08CE; Sat, 10 Dec 2022 18:27:19 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C046E08F2 for ; Sat, 10 Dec 2022 18:27:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C22443412C0 for ; Sat, 10 Dec 2022 18:27:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E77B3A5 for ; Sat, 10 Dec 2022 18:27:17 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1670696628.196ce188d782e9e92731ce59d1838e46e786f485.andrewammerlaan@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/oneMKL/files/, sci-libs/oneMKL/ X-VCS-Repository: proj/sci X-VCS-Files: sci-libs/oneMKL/files/oneMKL-0.2_p20221201-find-lapacke.patch sci-libs/oneMKL/metadata.xml sci-libs/oneMKL/oneMKL-0.2_p20221201.ebuild X-VCS-Directories: sci-libs/oneMKL/files/ sci-libs/oneMKL/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 196ce188d782e9e92731ce59d1838e46e786f485 X-VCS-Branch: master Date: Sat, 10 Dec 2022 18:27:17 +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: 4fef8228-b83f-41d0-9fdc-34def9d7541d X-Archives-Hash: ede7d42f4680e7a9a6b9b3ffd2bf7610 commit: 196ce188d782e9e92731ce59d1838e46e786f485 Author: Andrew Ammerlaan gentoo org> AuthorDate: Sat Dec 10 18:23:48 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sat Dec 10 18:23:48 2022 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=196ce188 sci-libs/oneMKL: new package, add 0.2_p20221201 Signed-off-by: Andrew Ammerlaan gentoo.org> .../files/oneMKL-0.2_p20221201-find-lapacke.patch | 22 ++++++++ sci-libs/oneMKL/metadata.xml | 11 ++++ sci-libs/oneMKL/oneMKL-0.2_p20221201.ebuild | 59 ++++++++++++++++++++++ 3 files changed, 92 insertions(+) diff --git a/sci-libs/oneMKL/files/oneMKL-0.2_p20221201-find-lapacke.patch b/sci-libs/oneMKL/files/oneMKL-0.2_p20221201-find-lapacke.patch new file mode 100644 index 000000000..2c2fc1367 --- /dev/null +++ b/sci-libs/oneMKL/files/oneMKL-0.2_p20221201-find-lapacke.patch @@ -0,0 +1,22 @@ +diff --git a/cmake/FindLAPACKE.cmake b/cmake/FindLAPACKE.cmake +index 42a5b7d..080108a 100644 +--- a/cmake/FindLAPACKE.cmake ++++ b/cmake/FindLAPACKE.cmake +@@ -19,13 +19,13 @@ + + include_guard() + +-find_library(LAPACKE64_file NAMES lapacke64.dll.lib lapacke64.lib lapacke64 HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) ++find_library(LAPACKE64_file NAMES lapacke64.dll.lib lapacke64.lib lapacke HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) + find_package_handle_standard_args(LAPACKE REQUIRED_VARS LAPACKE64_file) +-find_library(LAPACK64_file NAMES lapack64.dll.lib lapack64.lib lapack64 HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) ++find_library(LAPACK64_file NAMES lapack64.dll.lib lapack64.lib lapack HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) + find_package_handle_standard_args(LAPACKE REQUIRED_VARS LAPACK64_file) +-find_library(CBLAS64_file NAMES cblas64.dll.lib cblas64.lib cblas64 HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) ++find_library(CBLAS64_file NAMES cblas64.dll.lib cblas64.lib cblas HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) + find_package_handle_standard_args(LAPACKE REQUIRED_VARS CBLAS64_file) +-find_library(BLAS64_file NAMES blas64.dll.lib blas64.lib blas64 HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) ++find_library(BLAS64_file NAMES blas64.dll.lib blas64.lib blas HINTS ${REF_LAPACK_ROOT} PATH_SUFFIXES lib lib64) + find_package_handle_standard_args(LAPACKE REQUIRED_VARS BLAS64_file) + + get_filename_component(LAPACKE64_LIB_DIR ${LAPACKE64_file} DIRECTORY) diff --git a/sci-libs/oneMKL/metadata.xml b/sci-libs/oneMKL/metadata.xml new file mode 100644 index 000000000..77e2dd702 --- /dev/null +++ b/sci-libs/oneMKL/metadata.xml @@ -0,0 +1,11 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + oneapi-src/oneMKL + + diff --git a/sci-libs/oneMKL/oneMKL-0.2_p20221201.ebuild b/sci-libs/oneMKL/oneMKL-0.2_p20221201.ebuild new file mode 100644 index 000000000..35d773397 --- /dev/null +++ b/sci-libs/oneMKL/oneMKL-0.2_p20221201.ebuild @@ -0,0 +1,59 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +COMMIT="f4866ab2648cd7cff4a047b91be5f94ff7b73ba1" + +DESCRIPTION="oneAPI Math Kernel Library Interfaces " +HOMEPAGE="https://github.com/oneapi-src/oneMKL" +SRC_URI="https://github.com/oneapi-src/oneMKL/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="test" +# Tests don't compile properly +# RESTRICT="!test? ( test )" +RESTRICT="test" + +BDEPEND="sys-devel/DPC++" + +DEPEND=" + dev-cpp/tbb:= + sci-libs/lapack[lapacke] + sci-libs/mkl +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-find-lapacke.patch" +) + +src_prepare() { + # DPC++ compiler required for full functionality + export CC="${ESYSROOT}/usr/lib/llvm/intel/bin/clang" + export CXX="${ESYSROOT}/usr/lib/llvm/intel/bin/clang++" + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_CXX_COMPILER="${ESYSROOT}/usr/lib/llvm/intel/bin/clang++" + -DCMAKE_C_COMPILER="${ESYSROOT}/usr/lib/llvm/intel/bin/clang" + -DMKL_ROOT="${ESYSROOT}/opt/intel/oneapi/mkl/latest" + -DBUILD_FUNCTIONAL_TESTS="$(usex test)" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + # Move into the correct libdid + mv "${ED}/usr/lib" "${ED}/usr/$(get_libdir)" || die +}