diff options
author | pauleonix <paul.grosse-bley@ziti.uni-heidelberg.de> | 2024-08-26 15:27:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-26 15:27:07 +0200 |
commit | 8c92836c3973a8ad2679fb0f565f402e62b68dcc (patch) | |
tree | 1d64b34765eb5be7fcab9d9bfd36ae95ac4e5011 /var | |
parent | a782e6bc33bcd3650acb57615f7bcbe9d76563b8 (diff) | |
download | spack-8c92836c3973a8ad2679fb0f565f402e62b68dcc.tar.gz spack-8c92836c3973a8ad2679fb0f565f402e62b68dcc.tar.bz2 spack-8c92836c3973a8ad2679fb0f565f402e62b68dcc.tar.xz spack-8c92836c3973a8ad2679fb0f565f402e62b68dcc.zip |
cuda: add v12.6 (#45558)
Diffstat (limited to 'var')
4 files changed, 53 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cuda/package.py b/var/spack/repos/builtin/packages/cuda/package.py index 404b85a61c..5b905d6c22 100644 --- a/var/spack/repos/builtin/packages/cuda/package.py +++ b/var/spack/repos/builtin/packages/cuda/package.py @@ -24,6 +24,16 @@ from spack.package import * # format returned by platform.system() and 'arch' by platform.machine() _versions = { + "12.6.0": { + "Linux-aarch64": ( + "398db7baca17d51ad5035c606714c96380c965fd1742478c743bc6bbb1d8f63c", + "https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda_12.6.0_560.28.03_linux_sbsa.run", + ), + "Linux-x86_64": ( + "31ab04394e69b14dd8656e2b44c2877db1a0e898dff8a7546a4c628438101b94", + "https://developer.download.nvidia.com/compute/cuda/12.6.0/local_installers/cuda_12.6.0_560.28.03_linux.run", + ), + }, "12.5.1": { "Linux-aarch64": ( "353e8abc52ca80adf05002b775c7b3a2d2feefcf1c25ae13f8757f9a11efba3e", diff --git a/var/spack/repos/builtin/packages/magma/package.py b/var/spack/repos/builtin/packages/magma/package.py index e7dcd747b7..cb2089a622 100644 --- a/var/spack/repos/builtin/packages/magma/package.py +++ b/var/spack/repos/builtin/packages/magma/package.py @@ -82,6 +82,10 @@ class Magma(CMakePackage, CudaPackage, ROCmPackage): # https://bitbucket.org/icl/magma/issues/25/error-cusparsesolveanalysisinfo_t-does-not conflicts("^cuda@11:", when="@:2.5.3") + # currently not compatible with CUDA-12.6 + # https://github.com/icl-utk-edu/magma/issues/7 + conflicts("^cuda@12.6:", when="@:2.8.0") + # Many cuda_arch values are not yet recognized by MAGMA's CMakeLists.txt for target in [10, 11, 12, 13, 21, 32, 52, 53, 61, 62, 72, 86]: conflicts(f"cuda_arch={target}") diff --git a/var/spack/repos/builtin/packages/vtk-m/mr3259-thrust-is_arithmetic-fix.patch b/var/spack/repos/builtin/packages/vtk-m/mr3259-thrust-is_arithmetic-fix.patch new file mode 100644 index 0000000000..7b60ab777b --- /dev/null +++ b/var/spack/repos/builtin/packages/vtk-m/mr3259-thrust-is_arithmetic-fix.patch @@ -0,0 +1,35 @@ +diff --git a/vtkm/exec/cuda/internal/WrappedOperators.h b/vtkm/exec/cuda/internal/WrappedOperators.h +index bece57098..b46077e6a 100644 +--- a/vtkm/exec/cuda/internal/WrappedOperators.h ++++ b/vtkm/exec/cuda/internal/WrappedOperators.h +@@ -22,6 +22,10 @@ VTKM_THIRDPARTY_PRE_INCLUDE + #include <thrust/system/cuda/memory.h> + VTKM_THIRDPARTY_POST_INCLUDE + ++#if THRUST_VERSION >= 200500 ++#include <cuda/std/type_traits> ++#endif ++ + namespace vtkm + { + namespace exec +@@ -193,11 +197,19 @@ namespace detail + // the binary functor is commutative and the T type is is_arithmetic + // + // ++#if THRUST_VERSION >= 200500 ++template <typename T, typename F> ++struct is_commutative<vtkm::exec::cuda::internal::WrappedBinaryOperator<T, F>> ++ : public ::cuda::std::is_arithmetic<T> ++{ ++}; ++#else + template <typename T, typename F> + struct is_commutative<vtkm::exec::cuda::internal::WrappedBinaryOperator<T, F>> + : public thrust::detail::is_arithmetic<T> + { + }; ++#endif + } + } //namespace thrust::detail + diff --git a/var/spack/repos/builtin/packages/vtk-m/package.py b/var/spack/repos/builtin/packages/vtk-m/package.py index e6693b504e..737ee3a3a7 100644 --- a/var/spack/repos/builtin/packages/vtk-m/package.py +++ b/var/spack/repos/builtin/packages/vtk-m/package.py @@ -158,6 +158,10 @@ class VtkM(CMakePackage, CudaPackage, ROCmPackage): # https://gitlab.kitware.com/vtk/vtk-m/-/merge_requests/3258 patch("mr3258-fix-typo-thrust-dependency-with-rocm.patch", when="@2.2:") + # VTK-M PR#3259 + # https://gitlab.kitware.com/vtk/vtk-m/-/merge_requests/3259 + patch("mr3259-thrust-is_arithmetic-fix.patch", when="@2.0.0:2.2.0 +cuda ^cuda@12.6:") + # Disable Thrust patch that is no longer needed in modern Thrust patch( "https://github.com/Kitware/VTK-m/commit/4a4466e7c8cd44d2be2bd3fe6f359faa8e9547aa.patch?full_index=1", |