summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorChristoph Junghans <junghans@lanl.gov>2020-02-04 15:06:03 -0700
committerGitHub <noreply@github.com>2020-02-04 15:06:03 -0700
commit1974ad4e7f54aecfbce4bfca55ecf03ebf8192f6 (patch)
treeb84f2dc117c2c3d8809cad7f18372140a116d753 /var
parentd4d82281d1d5d0a43732e79cc7031354959f86d0 (diff)
downloadspack-1974ad4e7f54aecfbce4bfca55ecf03ebf8192f6.tar.gz
spack-1974ad4e7f54aecfbce4bfca55ecf03ebf8192f6.tar.bz2
spack-1974ad4e7f54aecfbce4bfca55ecf03ebf8192f6.tar.xz
spack-1974ad4e7f54aecfbce4bfca55ecf03ebf8192f6.zip
heffte: initial commit (#14744)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/heffte/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/heffte/package.py b/var/spack/repos/builtin/packages/heffte/package.py
new file mode 100644
index 0000000000..e3bb7e4961
--- /dev/null
+++ b/var/spack/repos/builtin/packages/heffte/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2020 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 import *
+
+
+class Heffte(CMakePackage):
+ """Highly Efficient FFT for Exascale"""
+
+ homepage = "https://bitbucket.org/icl/heffte"
+ url = "https://bitbucket.org/icl/heffte/get/v0.1.tar.gz"
+ git = "https://bitbucket.org/icl/heffte.git"
+
+ version('master', branch='master')
+ version('0.1', sha256='d279a03298d2dc76574b1ae1031acb4ea964348cf359273d1afa4668b5bfe748')
+
+ variant('cuda', default=False, description='Builds with support for GPUs via CUDA')
+
+ depends_on('fftw')
+ depends_on('mpi')
+ depends_on('cuda', when="+cuda")
+
+ def cmake_args(self):
+ args = ['-DBUILD_SHARED=ON']
+ if '+cuda' in self.spec:
+ args.append('-DBUILD_GPU=ON')
+ else:
+ args.append('-DBUILD_GPU=OFF')
+ return args