diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-04 08:06:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-04 08:06:08 +0100 |
commit | 2a8d2f71d1d9963368e0ef3d641d75979a689d12 (patch) | |
tree | 83e283f960ab2ebbc1a042b8ed6c37b78d47b37b /dev-cpp/kokkos | |
parent | 8435c842b9e8fbb2bcc80397ab3aa655000459e2 (diff) |
gentoo auto-resync : 04:07:2024 - 08:06:07
Diffstat (limited to 'dev-cpp/kokkos')
-rw-r--r-- | dev-cpp/kokkos/Manifest | 2 | ||||
-rw-r--r-- | dev-cpp/kokkos/kokkos-4.3.1.ebuild | 56 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-cpp/kokkos/Manifest b/dev-cpp/kokkos/Manifest index 58541996f8c1..795ffb3f7eeb 100644 --- a/dev-cpp/kokkos/Manifest +++ b/dev-cpp/kokkos/Manifest @@ -1,3 +1,5 @@ DIST kokkos-4.0.1.tar.gz 2322402 BLAKE2B a4aba2f7ffe7b7c93051ad65d398f442b753975eceb3f83ed1bff0b8c468e4ffdcb6437989e740c65fc550f17ef8ddf78ca50ca881d3953f886309dc7d6fc597 SHA512 cf6742f4be777b52673858b49cf68fdf335e760509688483e62ef41af5026070f69dcf39d010134c85dc6c4868f82a38900872be11ed43190432c8530b90deee +DIST kokkos-4.3.1.tar.gz 2431142 BLAKE2B 158ceea3c62449f386613b17e996e4d11e9b95c38a92f69fb3c487b90cf5f07dffdafb6ee0a37eff5299e7d1db50efaed4b26b9baebeeea9d675d0d98dd420e4 SHA512 8180ecdec2f0a6167a85dd1eb268996b0310e82098f2329eccf658aff90118a7c85c2f7607984602de2ca48dc45c1dbf30a4843b35c42590e58d4b03beff474a EBUILD kokkos-4.0.1.ebuild 1307 BLAKE2B 49af4974d49b5f80c64aec156e388b0f10e578d00a27da67f7b15bc40f502ff48e9c739b8d2e8be1b1d6d6e331e184343e34b55bcaf97c4f8ea0b826014a7c6f SHA512 4f76de242f7842d4d6764296136e9eb8f30629e370b35249c6ece9d3d30d9f41eb8f6e9552b7b0de1959726b3b7ed54c164c048ce3c89728b7229484b7bbfd19 +EBUILD kokkos-4.3.1.ebuild 1308 BLAKE2B 52c905b0a914345661d9507c1973575a2d636cf58070501dba7a7b437e74dc5bf8befd63ce082510ebb9618e9c77e4a7063e798690a561bda4c06987629287d6 SHA512 c40b69d230cd428b8ecf1c84632cc1848b042ffdf69f93cadb90b2060fb0eba8025e3c399427c9fa3e2a28411dabdff917b10eb1e8eadef7c36e692e3a0396a6 MISC metadata.xml 440 BLAKE2B ac3497ce481935eaef7f87c9f1c2ff7360b75a7d1f5f9bfc018726784fe3d1573ca16177e0ed956b494371def35bd592878bac27ec3862904b21714c556f937d SHA512 748c3608ee175243a8c02912d18a9297708c1369ac79af913e05a9d2155805fc9b6b366625223d977e378584a69e6bac749e5d3ee0a874d72385427d6149e5c5 diff --git a/dev-cpp/kokkos/kokkos-4.3.1.ebuild b/dev-cpp/kokkos/kokkos-4.3.1.ebuild new file mode 100644 index 000000000000..208704232631 --- /dev/null +++ b/dev-cpp/kokkos/kokkos-4.3.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="C++ Performance Portability Programming EcoSystem" +HOMEPAGE="https://github.com/kokkos" +MY_PV="$(ver_cut 1-2).0$(ver_cut 3)" +SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 -x86" +IUSE="+openmp test" +RESTRICT="!test? ( test )" + +DEPEND="sys-apps/hwloc:=" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}-${MY_PV}" + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_INCLUDEDIR=include/kokkos + -DKokkos_ENABLE_TESTS=$(usex test) + -DKokkos_ENABLE_AGGRESSIVE_VECTORIZATION=ON + -DKokkos_ENABLE_SERIAL=ON + -DKokkos_ENABLE_HWLOC=ON + -DKokkos_HWLOC_DIR="${EPREFIX}/usr" + -DKokkos_ENABLE_OPENMP=$(usex openmp) + -DBUILD_SHARED_LIBS=ON + ) + + cmake_src_configure +} + +src_test() { + local myctestargs=( + # Contains "death tests" which are known/expected(?) to fail + # https://github.com/kokkos/kokkos/issues/3033 + # bug #791514 + -E "(KokkosCore_UnitTest_OpenMP|KokkosCore_UnitTest_Serial)" + ) + + cmake_src_test +} |