From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/
Date: Mon, 23 Jan 2023 09:36:56 +0000 (UTC) [thread overview]
Message-ID: <1674466357.2e4ccd369ca6972fe56b606d3e3885249a1d4362.andrewammerlaan@gentoo> (raw)
commit: 2e4ccd369ca6972fe56b606d3e3885249a1d4362
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sun Jan 22 09:46:06 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 09:32:37 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e4ccd36
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 <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/29200
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> 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(-)
diff --git a/sci-libs/vtk/vtk-9.0.3-r7.ebuild b/sci-libs/vtk/vtk-9.0.3-r7.ebuild
index 29ec066862cb..704b90b94032 100644
--- a/sci-libs/vtk/vtk-9.0.3-r7.ebuild
+++ b/sci-libs/vtk/vtk-9.0.3-r7.ebuild
@@ -151,6 +151,12 @@ pkg_pretend() {
# 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
check-reqs_pkg_setup
}
@@ -162,6 +168,12 @@ pkg_setup() {
if use cuda; then
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
check-reqs_pkg_setup
diff --git a/sci-libs/vtk/vtk-9.1.0-r6.ebuild b/sci-libs/vtk/vtk-9.1.0-r6.ebuild
index f2d49d2249e2..e781751ccfda 100644
--- a/sci-libs/vtk/vtk-9.1.0-r6.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0-r6.ebuild
@@ -188,6 +188,12 @@ pkg_pretend() {
# 10.2 GiB install directory, 6.4 GiB build directory with max. USE flags
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
if use qt6 && use qt5; then
@@ -217,6 +223,12 @@ pkg_setup() {
if use cuda; then
CHECKREQS_MEMORY="7G"
CHECKREQS_DISK_BUILD="14G"
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
fi
if use qt6 && use qt5; then
diff --git a/sci-libs/vtk/vtk-9.2.2-r1.ebuild b/sci-libs/vtk/vtk-9.2.2-r1.ebuild
index f5432d511348..cd85af34661c 100644
--- a/sci-libs/vtk/vtk-9.2.2-r1.ebuild
+++ b/sci-libs/vtk/vtk-9.2.2-r1.ebuild
@@ -204,6 +204,16 @@ pkg_pretend() {
ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
fi
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
vtk_check_reqs
}
@@ -220,6 +230,16 @@ pkg_setup() {
ewarn "Both qt5 and qt6 USE flags have been selected. Using qt5!"
fi
+ # bug #835659
+ if use cuda; then
+ if [[ ${VTK_CUDA_ARCH} = native ]]; then
+ eerror "Using native CUDA arches is currently broken."
+ eerror "Please set it to one of the common arch names:"
+ eerror "kepler, maxwell, pascal, turing or ampere."
+ die "Please set VTK_CUDA_ARCH environment variable!"
+ fi
+ fi
+
vtk_check_reqs
use java && java-pkg-opt-2_pkg_setup
@@ -399,12 +419,12 @@ src_configure() {
kepler|maxwell|pascal|volta|turing|ampere|all)
cuda_arch=${VTK_CUDA_ARCH}
;;
- native)
- ewarn "If auto detection fails for you, please try and export the"
- ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
- ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
- cuda_arch=native
- ;;
+# native)
+# ewarn "If auto detection fails for you, please try and export the"
+# ewarn "VTK_CUDA_ARCH environment variable to one of the common arch"
+# ewarn "names: kepler, maxwell, pascal, volta, turing, ampere or all."
+# cuda_arch=native
+# ;;
*)
eerror "Please properly set the VTK_CUDA_ARCH environment variable to"
eerror "one of: kepler, maxwell, pascal, volta, turing, ampere, all"
next reply other threads:[~2023-01-23 9:37 UTC|newest]
Thread overview: 105+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 9:36 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-07 23:41 [gentoo-commits] repo/gentoo:master commit in: sci-libs/vtk/ Sam James
2025-01-07 23:40 Sam James
2025-01-05 20:35 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-12-05 18:01 Sam James
2024-09-07 9:15 Sam James
2024-09-06 20:36 Eli Schwartz
2024-09-04 11:45 Sebastian Pipping
2024-06-01 17:23 Andrew Ammerlaan
2024-05-07 13:12 Andrew Ammerlaan
2024-05-07 12:52 Andrew Ammerlaan
2024-04-12 12:40 Andrew Ammerlaan
2024-04-11 9:54 Andrew Ammerlaan
2024-04-06 6:49 Arthur Zamarin
2024-03-16 16:19 Arthur Zamarin
2023-12-01 9:58 Andrew Ammerlaan
2023-11-16 15:11 Florian Schmaus
2023-06-28 21:11 Sam James
2023-06-28 21:11 Sam James
2023-03-04 13:51 Arthur Zamarin
2023-01-23 9:36 Andrew Ammerlaan
2022-12-16 1:40 Sam James
2022-10-12 23:09 Sam James
2022-10-04 14:58 Joonas Niilola
2022-08-23 12:04 Andrew Ammerlaan
2022-06-26 8:49 Sam James
2022-06-26 7:11 Sam James
2022-05-19 12:12 Joonas Niilola
2022-05-18 16:58 Andrew Ammerlaan
2022-05-15 17:11 Andrew Ammerlaan
2022-04-06 17:30 Piotr Karbowski
2022-03-06 0:00 Sam James
2022-01-28 7:53 Sam James
2021-12-14 8:36 Joonas Niilola
2021-12-02 1:25 Sam James
2021-10-29 22:23 Sam James
2021-10-27 15:09 Sam James
2021-09-05 9:54 Andrew Ammerlaan
2021-08-27 20:23 Andrew Ammerlaan
2021-08-27 20:23 Andrew Ammerlaan
2021-08-02 20:52 Ionen Wolkens
2021-07-17 18:18 David Seifert
2021-07-07 20:05 Ionen Wolkens
2021-06-25 13:05 Andrew Ammerlaan
2021-06-25 13:05 Andrew Ammerlaan
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-15 14:42 Sam James
2021-06-10 3:38 Sam James
2021-06-02 1:24 Sam James
2021-03-26 0:57 Michael Orlitzky
2021-02-22 18:57 Sam James
2020-12-27 0:48 Andreas Sturmlechner
2020-12-27 0:17 Andreas Sturmlechner
2020-12-26 23:46 Andreas Sturmlechner
2020-07-16 1:06 Sam James
2020-06-06 10:04 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-06 9:42 Andreas Sturmlechner
2020-06-05 21:53 Andreas K. Hüttel
2020-06-05 21:15 Andreas K. Hüttel
2020-05-12 15:34 Matthias Maier
2020-05-12 5:58 Matthias Maier
2020-05-01 17:58 Matthias Maier
2020-05-01 16:48 Matthias Maier
2020-05-01 16:48 Matthias Maier
2020-04-26 11:00 David Seifert
2020-04-05 19:47 Andreas Sturmlechner
2020-04-05 19:47 Andreas Sturmlechner
2020-02-26 16:56 Andreas Sturmlechner
2020-02-09 16:36 Michał Górny
2020-02-04 13:10 Michał Górny
2019-09-14 16:33 Richard Yao
2018-10-27 14:09 Pacho Ramos
2018-10-13 10:07 Mikle Kolyada
2018-09-09 19:10 Amy Liffey
2018-02-28 18:48 Mart Raudsepp
2018-01-30 18:44 Jonathan Scruggs
2018-01-24 19:53 David Seifert
2017-12-22 10:55 Michael Weber
2017-11-17 18:47 David Seifert
2017-11-06 1:58 Andreas Sturmlechner
2017-11-06 1:58 Andreas Sturmlechner
2017-11-06 1:58 Andreas Sturmlechner
2017-07-04 15:49 Agostino Sarubbo
2017-07-04 10:17 Agostino Sarubbo
2017-05-06 22:20 David Seifert
2017-01-26 20:12 David Seifert
2016-12-20 19:16 Tobias Klausmann
2016-11-06 20:15 David Seifert
2016-11-06 20:15 David Seifert
2016-09-07 18:00 Patrice Clement
2016-08-21 17:41 Pacho Ramos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1674466357.2e4ccd369ca6972fe56b606d3e3885249a1d4362.andrewammerlaan@gentoo \
--to=andrewammerlaan@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox