diff options
author | Vicente Bolea <vicente.bolea@kitware.com> | 2023-07-12 08:34:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-12 14:34:50 +0200 |
commit | 37ef31dc2252eb273778f056809046db50b29316 (patch) | |
tree | fe3a364ca5d51f66a5c952dacbc1ca26a7ee1600 /var/spack/repos/builtin.mock/packages/vtk-m/package.py | |
parent | 7f2be62ff2a91becd1bdd832e723d8ae170779d6 (diff) | |
download | spack-37ef31dc2252eb273778f056809046db50b29316.tar.gz spack-37ef31dc2252eb273778f056809046db50b29316.tar.bz2 spack-37ef31dc2252eb273778f056809046db50b29316.tar.xz spack-37ef31dc2252eb273778f056809046db50b29316.zip |
vtk-m: correct cuda_arch variant behavior (#38697)
Co-authored-by: eugeneswalker <eugenesunsetwalker@gmail.com>
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/vtk-m/package.py')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/vtk-m/package.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/vtk-m/package.py b/var/spack/repos/builtin.mock/packages/vtk-m/package.py new file mode 100644 index 0000000000..9c1eadf4c6 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/vtk-m/package.py @@ -0,0 +1,37 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class VtkM(CMakePackage): + """This is a fake vtk-m package used to demonstrate virtual package providers + with dependencies.""" + + homepage = "http://www.spack-fake-vtk-m.org" + url = "http://www.spack-fake-vtk-m.org/downloads/vtk-m-1.0.tar.gz" + + version("1.0", md5="0123456789abcdef0123456789abcdef") + + variant("cuda", default=False, description="Build with CUDA") + variant( + "cuda_arch", + description="CUDA architecture", + default="none", + values=("70", "none"), + multi=False, + when="+cuda", + ) + + variant("rocm", default=False, description="Enable ROCm support") + variant( + "amdgpu_target", + default="none", + description="AMD GPU architecture", + values=("gfx900", "none"), + multi=False, + when="+rocm", + ) + depends_on("cmake@3.18:") |