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>
This commit is contained in:
Bernd Waibel
2023-01-22 10:46:06 +01:00
committed by Andrew Ammerlaan
parent bacca5d7ff
commit 2e4ccd369c
3 changed files with 50 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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"