From 3143222d87300e4d848637b81c1cb09c86708068 Mon Sep 17 00:00:00 2001 From: Toyohisa Kameyama Date: Tue, 19 Jan 2021 13:52:50 +0900 Subject: [PATCH] salmon-tddft: add eigenexa variant (#21140) --- var/spack/repos/builtin/packages/salmon-tddft/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/salmon-tddft/package.py b/var/spack/repos/builtin/packages/salmon-tddft/package.py index 1cd440bdb3..f926c4bbae 100755 --- a/var/spack/repos/builtin/packages/salmon-tddft/package.py +++ b/var/spack/repos/builtin/packages/salmon-tddft/package.py @@ -24,6 +24,7 @@ class SalmonTddft(CMakePackage): variant('mpi', default=False, description='Enable MPI') variant('libxc', default=False, description='Enable libxc') variant('scalapack', default=False, description='Enable scalapack') + variant('eigenexa', default=False, description='Enable eigenexa') variant( 'manycore', default=False, description='Enable optimization of reduction for many-core processor' @@ -36,11 +37,14 @@ class SalmonTddft(CMakePackage): depends_on('cmake@3.14:', type='build') depends_on('mpi', type='link', when='+mpi') depends_on('scalapack', type='link', when='+scalapack') + depends_on('eigenexa', type='link', when='+eigenexa') depends_on('lapack', type='link') depends_on('libxc', type='link', when='+libxc') depends_on('libxc@:4.9', type='link', when='@:1.9.9 +libxc') conflicts('+scalapack', when='~mpi') + conflicts('+eigenexa', when='@:1.9.9') + conflicts('+eigenexa', when='~scalapack') conflicts('+manycore', when='@2.0.0:') conflicts('+current_processing', when='@2.0.0:') @@ -54,6 +58,7 @@ def cmake_args(self): define = self.define args = [ define_from_variant('USE_SCALAPACK', 'scalapack'), + define_from_variant('USE_EIGENEXA', 'eigenexa'), define_from_variant('USE_MPI', 'mpi'), define_from_variant('USE_LIBXC', 'libxc'), define_from_variant('REDUCE_FOR_MANYCORE', 'manycore'),