diff options
Diffstat (limited to 'sci-libs/vtk/vtk-9.2.2-r1.ebuild')
-rw-r--r-- | sci-libs/vtk/vtk-9.2.2-r1.ebuild | 32 |
1 files changed, 26 insertions, 6 deletions
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" |