diff options
author | Niclas Jansson <njansson@kth.se> | 2022-03-30 09:34:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 09:34:10 +0200 |
commit | fdab17a4d4b425c06111cd566d6a761151878f21 (patch) | |
tree | d3c0d6c0c6757608e54bb6f769a9a41c70492cf6 | |
parent | 8806f9f8260f84b901cc5eaa1fdc61323ab80716 (diff) | |
download | spack-fdab17a4d4b425c06111cd566d6a761151878f21.tar.gz spack-fdab17a4d4b425c06111cd566d6a761151878f21.tar.bz2 spack-fdab17a4d4b425c06111cd566d6a761151878f21.tar.xz spack-fdab17a4d4b425c06111cd566d6a761151878f21.zip |
neko: add new package (#28791)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/neko/package.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/neko/package.py b/var/spack/repos/builtin/packages/neko/package.py new file mode 100644 index 0000000000..1216624fae --- /dev/null +++ b/var/spack/repos/builtin/packages/neko/package.py @@ -0,0 +1,42 @@ +# Copyright 2013-2022 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 Neko(AutotoolsPackage, CudaPackage, ROCmPackage): + """Neko: A modern, portable, and scalable framework + for high-fidelity computational fluid dynamics + """ + + homepage = "https://github.com/ExtremeFLOW/neko" + git = "https://github.com/ExtremeFLOW/neko.git" + maintainers = ['njansson'] + + version('0.3.0', commit='a82097a10ae3c965fb873da909a6324c7a7742fb') + version('develop', branch='develop') + variant('parmetis', default=False, description='Build with support for parmetis') + variant('xsmm', default=False, description='Build with support for libxsmm') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('pkgconf', type='build') + depends_on('parmetis', when='+parmetis') + depends_on('libxsmm', when='+xsmm') + depends_on('mpi') + depends_on('blas') + depends_on('lapack') + + def configure_args(self): + args = [] + args += self.with_or_without('parmetis') + args += self.with_or_without('libxsmm', variant='xsmm') + args += self.with_or_without('cuda', activation_value='prefix') + rocm_fn = lambda x: spec['hip'].prefix + args += self.with_or_without('hip', variant='rocm', activation_value=rocm_fn) + + return args |