summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Frasch <simon.frasch@cscs.ch>2021-01-18 23:33:18 +0100
committerGitHub <noreply@github.com>2021-01-18 16:33:18 -0600
commite91ff86882e8f09b43393ade4926cf28c8341587 (patch)
treeb9ba2ce65c76eb6cdd087216caaeb469bf87fce2
parent699df81a954d2ae1575b4da52904a1c49ac45ca5 (diff)
downloadspack-e91ff86882e8f09b43393ade4926cf28c8341587.tar.gz
spack-e91ff86882e8f09b43393ade4926cf28c8341587.tar.bz2
spack-e91ff86882e8f09b43393ade4926cf28c8341587.tar.xz
spack-e91ff86882e8f09b43393ade4926cf28c8341587.zip
spfft: add version 1.0.0 (#20959)
-rw-r--r--var/spack/repos/builtin/packages/spfft/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/spfft/package.py b/var/spack/repos/builtin/packages/spfft/package.py
index 219739a6d5..e05fab44cd 100644
--- a/var/spack/repos/builtin/packages/spfft/package.py
+++ b/var/spack/repos/builtin/packages/spfft/package.py
@@ -17,6 +17,7 @@ class Spfft(CMakePackage, CudaPackage):
version('develop', branch='develop')
version('master', branch='master')
+ version('1.0.0', sha256='bd98897aa6734563ec63cd84168e731ef2e2bbc01a574c6dc59b74475742b6ee')
version('0.9.13', sha256='5ccc93c9362bec14cfb6e31dd0e7ae7e48db0453ab49ebc9722041b69db759ef')
version('0.9.12', sha256='1f7bf5164dcceb0e3bbce7d6ff9faef3145ad17cf3430149d40a98c43c010acc')
version('0.9.11', sha256='36542a60378e8672654188dee006975ef9e10f502791459ff7ebf4b38451cb9b')
@@ -71,11 +72,17 @@ class Spfft(CMakePackage, CudaPackage):
args += [
'-DSPFFT_GPU_BACKEND=ROCM',
'-DHIP_ROOT_DIR={0}'.format(spec['hip'].prefix),
- '-DHIP_HCC_FLAGS=--amdgpu-target={0}'.format(archs)
+ '-DHIP_HCC_FLAGS=--amdgpu-target={0}'.format(archs),
+ '-DHIP_CXX_COMPILER={0}'.format(self.spec['hip'].hipcc)
]
if spec.satisfies('+fortran'):
args += ["-DSPFFT_FORTAN=On"]
if spec.satisfies('+static'):
args += ["-DSPFFT_STATIC=On"]
+ if 'fftw' in spec:
+ args += ["-DSPFFT_FFTW_LIB=FFTW"]
+ elif 'intel-mkl' in spec:
+ args += ["-DSPFFT_FFTW_LIB=MKL"]
+
return args