summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2020-08-03 02:42:07 +0200
committerGitHub <noreply@github.com>2020-08-02 19:42:07 -0500
commite199f3f245f7bdebba8e2b0a3fcc2d4161102281 (patch)
treea78e1a45f5b9a859ec580090b0be45fc08cdb05a /var
parentd560d83b76baf150e9510421cc8df782ed5bd31f (diff)
downloadspack-e199f3f245f7bdebba8e2b0a3fcc2d4161102281.tar.gz
spack-e199f3f245f7bdebba8e2b0a3fcc2d4161102281.tar.bz2
spack-e199f3f245f7bdebba8e2b0a3fcc2d4161102281.tar.xz
spack-e199f3f245f7bdebba8e2b0a3fcc2d4161102281.zip
Add new versions of spfft (#17841)
* Add new versions of spfft * Extend CudaPackage and use virtual fftw package Co-authored-by: Simon Pintarelli <simon.pintarelli@cscs.ch> * Add CUDA 11 compatibility note * Depend on older cuda <= 10 for spfft <= 0.9.11 Co-authored-by: Simon Pintarelli <simon.pintarelli@cscs.ch>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/spfft/package.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/spfft/package.py b/var/spack/repos/builtin/packages/spfft/package.py
index 0f680564a8..2fbd738383 100644
--- a/var/spack/repos/builtin/packages/spfft/package.py
+++ b/var/spack/repos/builtin/packages/spfft/package.py
@@ -7,12 +7,14 @@
from spack import *
-class Spfft(CMakePackage):
+class Spfft(CMakePackage, CudaPackage):
"""Sparse 3D FFT library with MPI, OpenMP, CUDA and ROCm support."""
homepage = "https://github.com/eth-cscs/SpFFT"
url = "https://github.com/eth-cscs/SpFFT/archive/v0.9.8.zip"
+ version('0.9.12', sha256='1f7bf5164dcceb0e3bbce7d6ff9faef3145ad17cf3430149d40a98c43c010acc')
+ version('0.9.11', sha256='36542a60378e8672654188dee006975ef9e10f502791459ff7ebf4b38451cb9b')
version('0.9.10', sha256='9cbbb7ba5e53e17eeb45e809841d8272e5333f739c2442a99c3e255c1ddec3e9')
version('0.9.9', sha256='a8fd7a2d767716bb73185ca03bf4c106c6981b79130f3e456e5d2e744a2b3ba0')
version('0.9.8', sha256='f49fa51316bbfa68309e951d2375e1f6904120c93868cbe13bc2974c0b801a3f')
@@ -26,9 +28,10 @@ class Spfft(CMakePackage):
variant('fortran', default=False, description="enable fortran")
variant('build_type', default='Release', description='CMake build type',
values=('Debug', 'Release', 'RelWithDebInfo'))
- depends_on('fftw')
+ depends_on('fftw-api@3')
depends_on('mpi', when='+mpi')
- depends_on('cuda', when='+cuda')
+
+ depends_on('cuda@:10', when='@:0.9.11 +cuda')
def cmake_args(self):
args = []