Summary: | sci-libs/vtk-9.*[cuda] fails to configure: CMake Error at ThirdParty/vtkm/vtkvtkm/vtk-m/CMake/VTKmDeviceAdapters.cmake:224 (message): Error detecting architecture flags for CUDA. Please set VTKm_CUDA_Architecture manually. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Miroslav Šulc <fordfrog> |
Component: | Current packages | Assignee: | Bernd <waebbl-gentoo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugzilla, dan, egor-gl, fgroups, ilovekiruna, kkrizka, leonchik1976, proxy-maint, sci |
Priority: | Normal | Keywords: | PullRequest, UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gitlab.kitware.com/vtk/vtk-m/-/issues/693 | ||
See Also: |
https://gitlab.kitware.com/vtk/vtk-m/-/issues/693 https://github.com/gentoo/gentoo/pull/29200 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Miroslav Šulc
2022-03-20 13:18:52 UTC
Thanks for the report Miroslav. * If auto detection fails for you, please try and export the * VTK_CUDA_ARCH environment variable to one of the common arch * names: kepler, maxwell, pascal, volta, turing, ampere or all. * Using CUDA architecture 'native' Could you try, whether setting the proper architecture in make.conf or your environment workds? i tried your suggestion, and as i have this card: 01:00.0 VGA compatible controller: NVIDIA Corporation TU104M [GeForce RTX 2080 SUPER Mobile / Max-Q] (rev a1) i set it to: VTK_CUDA_ARCH="turing" it configured fine, but the compilation failed: /var/tmp/portage/sci-libs/vtk-9.0.3-r4/work/VTK-9.0.3/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/internal/brigand.hpp:1061:131: error: expected class-name before ‘{’ token 1061 | struct find<true, false, L1, L2, Ls...> : find<true, F<Ts..., L2>::value, L2, Ls...> | ^ /var/tmp/portage/sci-libs/vtk-9.0.3-r4/work/VTK-9.0.3/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/internal/brigand.hpp:1067:160: error: expected class-name before ‘{’ token 1067 | struct find<false, false, L0, L1, L2, L3, L4, L5, L6, L7, L8, Ls...> which i guess is a bug #820593 So it seems, their autodetection isn't working properly. The bug you encounter without autodetection is correct. just hit the same issue The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=588025882a58b613f5ef08e02b96efbb7d4c7445 commit 588025882a58b613f5ef08e02b96efbb7d4c7445 Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2022-09-29 05:18:39 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-12-12 06:08:29 +0000 sci-libs/vtk: add 9.2.2 - add a new function to check memory and disk space requirements - don't drop bundled external libraries, it's only a few MB which are freed through this and upstream does a good job to avoid automagic deps - request more modules to build explicitly depending on USE flag settings - don't export CC and friends with USE=mpi, package builds fine with gcc and still links to MPI libraries - add USE flag to build vtk-m optional Bug: https://bugs.gentoo.org/793221 Bug: https://bugs.gentoo.org/835659 Bug: https://bugs.gentoo.org/880759 Closes: https://bugs.gentoo.org/820593 Closes: https://bugs.gentoo.org/827310 Closes: https://bugs.gentoo.org/846374 Closes: https://bugs.gentoo.org/874798 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/28250 Signed-off-by: Joonas Niilola <juippis@gentoo.org> sci-libs/vtk/Manifest | 6 + .../vtk-9.2.2-VTKm-respect-user-CXXFLAGS.patch | 81 +++ ...9.2.2-link-with-glut-library-for-freeglut.patch | 18 + ...metryFilter-add-missing-mutex-header-file.patch | 20 + sci-libs/vtk/metadata.xml | 11 +- sci-libs/vtk/vtk-9.2.2.ebuild | 728 +++++++++++++++++++++ 6 files changed, 863 insertions(+), 1 deletion(-) Until this is fixed upstream, I will drop the native arch from the code and error out if VTK_CUDA_ARCH is not set. *** Bug 891597 has been marked as a duplicate of this bug. *** The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e4ccd369ca6972fe56b606d3e3885249a1d4362 commit 2e4ccd369ca6972fe56b606d3e3885249a1d4362 Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2023-01-22 09:46:06 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2023-01-23 09:32:37 +0000 sci-libs/vtk: drop native CUDA arch Backport from 9.2.5, until detection is fixed upstream, don't allow the use of VTK_CUDA_ARCH=native. Bug: https://bugs.gentoo.org/835659 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/29200 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-libs/vtk/vtk-9.0.3-r7.ebuild | 12 ++++++++++++ sci-libs/vtk/vtk-9.1.0-r6.ebuild | 12 ++++++++++++ sci-libs/vtk/vtk-9.2.2-r1.ebuild | 32 ++++++++++++++++++++++++++------ 3 files changed, 50 insertions(+), 6 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bacca5d7ff16b9a1b280edb47ed6b57dc09c2913 commit bacca5d7ff16b9a1b280edb47ed6b57dc09c2913 Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2023-01-21 09:31:32 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2023-01-23 09:32:13 +0000 sci-libs/vtk: add 9.2.5 - Add Python 3.11 support. - Simplifiy test logic. The VTK_FORBID_DOWNLOADS option now also works when testing is enabled, if all data files are downloaded and regenerated before testing. - Drop native CUDA arch as long as detection isn't fixed upstream. Bug: https://gitlab.kitware.com/vtk/vtk-m/issues/693 Bug: https://bugs.gentoo.org/835659 Closes: https://bugs.gentoo.org/890269 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-libs/vtk/Manifest | 6 + sci-libs/vtk/vtk-9.2.5.ebuild | 743 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 749 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0167fc77186716079471d895b32b2283ca8b7fc4 commit 0167fc77186716079471d895b32b2283ca8b7fc4 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2023-07-06 14:26:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-10 12:41:01 +0000 sci-libs/vtk: add 9.3.0 Closes: https://bugs.gentoo.org/918898 Closes: https://bugs.gentoo.org/909520 Closes: https://bugs.gentoo.org/909380 Closes: https://bugs.gentoo.org/908874 Closes: https://bugs.gentoo.org/906264 Closes: https://bugs.gentoo.org/906075 Closes: https://bugs.gentoo.org/887505 Closes: https://bugs.gentoo.org/840776 Closes: https://bugs.gentoo.org/835659 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34432 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/vtk/Manifest | 6 + sci-libs/vtk/files/vtk-9.2.5-pegtl-3.x.patch | 136 +++ ...ix-Java-error-with-integer-enum-overloads.patch | 51 ++ sci-libs/vtk/files/vtk-9.3.0-java.patch | 11 + sci-libs/vtk/files/vtk-9.3.0-opencascade.patch | 17 + sci-libs/vtk/files/vtk-9.3.0-pdal-2.6.0.patch | 77 ++ .../vtk-9.3.0-too-many-initializer-values.patch | 20 + sci-libs/vtk/metadata.xml | 1 + sci-libs/vtk/vtk-9.3.0.ebuild | 909 +++++++++++++++++++++ 9 files changed, 1228 insertions(+) |