summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshwin Kumar Karnad <46030335+iamashwin99@users.noreply.github.com>2023-03-31 14:18:53 +0200
committerGitHub <noreply@github.com>2023-03-31 08:18:53 -0400
commitc2c56c1ca152e57dd572fb90daf3dfb88f60119a (patch)
treea1ade78c24858c8583c9dc8192fb32acfea83706
parent7e06b5bc886305239dcd99efa8bdc0a8884ccf16 (diff)
downloadspack-c2c56c1ca152e57dd572fb90daf3dfb88f60119a.tar.gz
spack-c2c56c1ca152e57dd572fb90daf3dfb88f60119a.tar.bz2
spack-c2c56c1ca152e57dd572fb90daf3dfb88f60119a.tar.xz
spack-c2c56c1ca152e57dd572fb90daf3dfb88f60119a.zip
octopus: Add sparskit variant (#36494)
Co-authored-by: Hans Fangohr <fangohr@users.noreply.github.com> Co-authored-by: Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/octopus/package.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py
index da099b5f07..06e43dea10 100644
--- a/var/spack/repos/builtin/packages/octopus/package.py
+++ b/var/spack/repos/builtin/packages/octopus/package.py
@@ -44,6 +44,11 @@ class Octopus(AutotoolsPackage, CudaPackage):
variant("metis", default=False, description="Compile with METIS")
variant("parmetis", default=False, when="+mpi", description="Compile with ParMETIS")
variant("netcdf", default=False, description="Compile with Netcdf")
+ variant(
+ "sparskit",
+ default=False,
+ description="Compile with Sparskit - A Basic Tool Kit for Sparse Matrix Computations",
+ )
variant("arpack", default=False, description="Compile with ARPACK")
variant("cgal", default=False, description="Compile with CGAL library support")
variant("pfft", default=False, when="+mpi", description="Compile with PFFT")
@@ -110,6 +115,7 @@ class Octopus(AutotoolsPackage, CudaPackage):
depends_on("metis@5:+int64", when="+metis")
depends_on("parmetis+int64", when="+parmetis")
depends_on("scalapack", when="+scalapack")
+ depends_on("sparskit", when="+sparskit")
depends_on("cgal", when="+cgal")
depends_on("pfft", when="+pfft")
depends_on("nfft@3.2.4", when="+nfft")
@@ -229,10 +235,12 @@ class Octopus(AutotoolsPackage, CudaPackage):
if "+python" in spec:
args.append("--enable-python")
- # --with-etsf-io-prefix=
+ if "+sparskit" in spec:
+ args.append(
+ "--with-sparskit=%s" % os.path.join(self.spec["sparskit"].prefix.lib, "libskit.a")
+ )
if "+etsf-io" in spec:
args.append("--with-etsf-io-prefix=%s" % spec["etsf-io"].prefix)
- # --with-sparskit=${prefix}/lib/libskit.a
# --with-pfft-prefix=${prefix} --with-mpifftw-prefix=${prefix}
# --with-berkeleygw-prefix=${prefix}
if "+berkeleygw" in spec: