commit:     c900fe2c10cb1e5361ddd3a0bcddc0fb05d47dee
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Nov 17 12:09:50 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 14:56:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c900fe2c

sci-libs/vtk: increase memory requirement for cuda compile jobs

This reduces the pool size for compilation. The value for CHECKREQS_MEMORY stays
the same as there seem to be only two jobs with 14 GiB usage and the rest stay
below that. So for machines with more memory (>32 GiB) this works as well.

Closes: https://bugs.gentoo.org/932464
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44665
Closes: https://github.com/gentoo/gentoo/pull/44665
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/vtk/vtk-9.5.2.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sci-libs/vtk/vtk-9.5.2.ebuild b/sci-libs/vtk/vtk-9.5.2.ebuild
index 92e61ee7119a..ec665cceb0af 100644
--- a/sci-libs/vtk/vtk-9.5.2.ebuild
+++ b/sci-libs/vtk/vtk-9.5.2.ebuild
@@ -375,6 +375,12 @@ src_prepare() {
 
        cmake_src_prepare
 
+       # 14 GiB is the highest single process ram usage seen
+       # 932464
+       sed \
+               -e "/EXPR viskores_pool_size/s/3072/$(( 14 * 1024 ))/g" \
+               -i 
ThirdParty/viskores/vtkviskores/viskores/CMake/ViskoresWrappers.cmake || die
+
        if use test; then
                ebegin "Copying data files to ${BUILD_DIR}"
                mkdir -p "${BUILD_DIR}/ExternalData" || die

Reply via email to