diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-18 18:50:06 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-18 18:50:06 +0000 |
commit | bc7e0dbdbd194a8c2e09f82e1a5a4ea5e1b556f4 (patch) | |
tree | cb9186c88b5cfbd6c51e4b283677075c5c6ea38e /sci-libs/ceres-solver | |
parent | ebb07c94f800907e02d2a6b92c1bc757b2f86f49 (diff) |
gentoo auto-resync : 18:03:2024 - 18:50:06
Diffstat (limited to 'sci-libs/ceres-solver')
-rw-r--r-- | sci-libs/ceres-solver/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild (renamed from sci-libs/ceres-solver/ceres-solver-2.2.0.ebuild) | 26 |
2 files changed, 24 insertions, 4 deletions
diff --git a/sci-libs/ceres-solver/Manifest b/sci-libs/ceres-solver/Manifest index 1d88e9e21552..fde498d054f8 100644 --- a/sci-libs/ceres-solver/Manifest +++ b/sci-libs/ceres-solver/Manifest @@ -2,5 +2,5 @@ AUX ceres-solver-2.0.0-system-mathjax.patch 325 BLAKE2B a649088517ec1bef7d5a6144 DIST ceres-solver-2.1.0.tar.gz 3802187 BLAKE2B d8ff780cf9b9de2541c15a2b95bde07a2d1c8e60bab3a8a4b13134b99da699da452467afe3310b9f70c3c2a6bd033ea3c4bd3c401153899e9c70867fae30c633 SHA512 db777c4a4b85a9972628c714413fe9ca1a92cc6c8b14d80401842a02c4d7e7df4e9d236775e231e8337e47f21e47cd82c1a0fbcfeffbd9b654e46a66262996f2 DIST ceres-solver-2.2.0.tar.gz 7635532 BLAKE2B ecdd5147e235df711705fc262fad18cfc79f8cfaaa9aba41428c70ae5996aab44c44e5b7d3f62d8ab4633ec2d7511c39191323911fea1276f5797e900c42bc60 SHA512 bf519fbcbd0ee2d4624be72cde061a09d191ee5e56dc33984669393799b885c2164efc99dcef71307f8b50a9ccad945882376ace3d9a44ba7e1f25c20511aabd EBUILD ceres-solver-2.1.0-r1.ebuild 2426 BLAKE2B 05047be09beed316cc5d288923a31553f9ee3c4afb01b83265b67be04d84dd9104b3c444f867a1a9b632ef6fb013e4556897f7bc0da7dbdc9ccefe647a994689 SHA512 c46f722f17201355c791fea3e3229c2fd8fa74432205635abd68d20544039f879196ebec6ffda10b40a9138a4c9e507724de2e7bd48d2a7e07cf12629bb88869 -EBUILD ceres-solver-2.2.0.ebuild 1975 BLAKE2B 91449c74c31e3116073c8f5081fd71d8ef05652e01a29586451ee58ada90f2767524f3b2e9d90cbbdb84c14ecba3235f670da7cc543af98c20cd8fafbda34d18 SHA512 64e2136f0199f60d2195a246c68c42fa88c9aab693bc6471b622f6d16e46f998d58ee138f2a58a44544d219f6737e5c1e1c9710a31fd9f9b8e7809c1cf2f05a3 +EBUILD ceres-solver-2.2.0-r1.ebuild 2347 BLAKE2B becba029d438096d2ace9f501d26995c21271b77c3de1c9d8a5dd55066fa5de0fd43915ca911f77fb399250df4f3c3bb16bc444e3b928841c4e8fd59e65f34d3 SHA512 d1ee1833db911fdc178f18c7b830b80dc5d53876fa00b2fed1d314a68c0132a8de33de7af300565ba36fd02313d3d4979a646980a72e6dc60a4d95e669c8ff8f MISC metadata.xml 1454 BLAKE2B af5a9cef52650cff056c7804782e7024696ed9122e8998faad23796960d94155f5f318cec2750a4ead6610f89fe55e49301a30ec62bfc846ea2a955a430f42cf SHA512 cf928d9400bbac7ba003ad44fc6c1d77cef43a58d2cc9b399ee854880ad75b38062e3a61899403eda529e7eaba528606a8da25b5e287c53bc4721d025b6a7e59 diff --git a/sci-libs/ceres-solver/ceres-solver-2.2.0.ebuild b/sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild index 6abc595b8231..747e151d1e59 100644 --- a/sci-libs/ceres-solver/ceres-solver-2.2.0.ebuild +++ b/sci-libs/ceres-solver/ceres-solver-2.2.0-r1.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{10..12} ) DOCS_BUILDER="sphinx" DOCS_DEPEND="dev-python/sphinx-rtd-theme" DOCS_DIR="docs/source" -inherit cmake-multilib flag-o-matic python-any-r1 docs +inherit cmake-multilib cuda flag-o-matic python-any-r1 docs DESCRIPTION="Nonlinear least-squares minimizer" HOMEPAGE="http://ceres-solver.org/" @@ -16,7 +16,7 @@ SRC_URI="http://ceres-solver.org/${P}.tar.gz" LICENSE="sparse? ( BSD ) !sparse? ( LGPL-2.1 )" SLOT="0/1" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="examples gflags lapack +schur sparse test" +IUSE="examples cuda gflags lapack +schur sparse test" REQUIRED_USE="test? ( gflags ) sparse? ( lapack ) abi_x86_32? ( !sparse !lapack )" RESTRICT="!test? ( test )" @@ -28,6 +28,7 @@ BDEPEND="${PYTHON_DEPS} " RDEPEND=" dev-cpp/glog[gflags?,${MULTILIB_USEDEP}] + cuda? ( dev-util/nvidia-cuda-toolkit:= ) lapack? ( virtual/lapack ) sparse? ( sci-libs/amd @@ -61,7 +62,7 @@ src_prepare() { } src_configure() { - # CUSTOM_BLAS=OFF EIGENSPARSE=OFF MINIGLOG=OFF CXX11=OFF + # CUSTOM_BLAS=OFF EIGENSPARSE=OFF MINIGLOG=OFF local mycmakeargs=( -DBUILD_BENCHMARKS=OFF -DBUILD_EXAMPLES=$(usex examples) @@ -72,13 +73,32 @@ src_configure() { -DSCHUR_SPECIALIZATIONS=$(usex schur) -DSUITESPARSE=$(usex sparse) -DEigen3_DIR=/usr/$(get_libdir)/cmake/eigen3 + + -DBUILD_SHARED_LIBS="yes" + -DEIGENMETIS="yes" + -DEIGENSPARSE="yes" + -DMINIGLOG="no" + -DCUSTOM_BLAS="yes" + -DUSE_CUDA="$(usex cuda)" ) + if use cuda; then + : "${CUDAHOSTCXX:=$(cuda_gccdir)}" + : "${CUDAARCHS:=all}" + export CUDAHOSTCXX + export CUDAARCHS + fi + use sparse || mycmakeargs+=( -DEIGENSPARSE=ON ) cmake-multilib_src_configure } +src_test() { + use cuda && cuda_add_sandbox -w + cmake_src_test +} + src_install() { cmake-multilib_src_install |