VTKm: add v1.7.0 (#27864)

Co-authored-by: Cyrus Harrison <cyrush@llnl.gov>
This commit is contained in:
Vicente Bolea 2022-01-03 05:36:11 -05:00 committed by GitHub
parent 8daaee3ed6
commit a06d93f6cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View file

@ -73,18 +73,18 @@ class VtkH(Package, CudaPackage):
depends_on("mpi", when="+mpi")
depends_on("cuda", when="+cuda")
depends_on("vtk-m~tbb+openmp", when="+openmp")
depends_on("vtk-m~tbb~openmp", when="~openmp")
depends_on("vtk-m@:1.6~tbb+openmp", when="+openmp")
depends_on("vtk-m@:1.6~tbb~openmp", when="~openmp")
for _arch in CudaPackage.cuda_arch_values:
depends_on("vtk-m+cuda~tbb+openmp cuda_arch={0}".format(_arch), when="+cuda+openmp cuda_arch={0}".format(_arch))
depends_on("vtk-m+cuda~tbb~openmp cuda_arch={0}".format(_arch), when="+cuda~openmp cuda_arch={0}".format(_arch))
depends_on("vtk-m@:1.6+cuda~tbb+openmp cuda_arch={0}".format(_arch), when="+cuda+openmp cuda_arch={0}".format(_arch))
depends_on("vtk-m@:1.6+cuda~tbb~openmp cuda_arch={0}".format(_arch), when="+cuda~openmp cuda_arch={0}".format(_arch))
depends_on("vtk-m~tbb+openmp~shared", when="+openmp~shared")
depends_on("vtk-m~tbb~openmp~shared", when="~openmp~shared")
depends_on("vtk-m@:1.6~tbb+openmp~shared", when="+openmp~shared")
depends_on("vtk-m@:1.6~tbb~openmp~shared", when="~openmp~shared")
depends_on("vtk-m+cuda~tbb+openmp~shared", when="+cuda+openmp~shared")
depends_on("vtk-m+cuda~tbb~openmp~shared", when="+cuda~openmp~shared")
depends_on("vtk-m@:1.6+cuda~tbb+openmp~shared", when="+cuda+openmp~shared")
depends_on("vtk-m@:1.6+cuda~tbb~openmp~shared", when="+cuda~openmp~shared")
def install(self, spec, prefix):
with working_dir('spack-build', create=True):
@ -94,8 +94,8 @@ def install(self, spec, prefix):
"-DBUILD_TESTING=OFF"]
# shared vs static libs logic
# force static when building with cuda
if "+cuda" in spec:
# force static when building with CUDA <= 1.6
if "+cuda" in spec and spec["vtk-m"].satisfies('@:1.6'):
cmake_args.append('-DBUILD_SHARED_LIBS=OFF')
else:
if "+shared" in spec:

View file

@ -28,8 +28,8 @@ class VtkM(CMakePackage, CudaPackage):
version('master', branch='master')
version('release', branch='release')
version('1.7.0-rc1', sha256="e9cedc21f0ad326317acc7689ee0c7719a6cb8af41e87fd232aee5ab8d0620e4")
version('1.6.0', sha256="14e62d306dd33f82eb9ddb1d5cee987b7a0b91bf08a7a02ca3bce3968c95fd76", preferred=True)
version('1.7.0', sha256="a86667ac22057462fc14495363cfdcc486da125b366cb568ec23c86946439be4", preferred=True)
version('1.6.0', sha256="14e62d306dd33f82eb9ddb1d5cee987b7a0b91bf08a7a02ca3bce3968c95fd76")
version('1.5.5', commit="d2d1c854adc8c0518802f153b48afd17646b6252")
version('1.5.4', commit="bbba2a1967b271cc393abd043716d957bca97972")
version('1.5.3', commit="a3b8525ef97d94996ae843db0dd4f675c38e8b1e")