
* libint: updated version, ported to AutotoolsPackage * elpa: updated version, ported to AutotoolsPackage * wannier90: updated version, ported to MakefilePackage * pexsi: updated version, ported to MakefilePackage * cp2k: updated version, removed wannier 90 from dependencies if cp2k@4.1 * plumed: updated version Modifications: * modules has been turned into a single variant, as different versions have different modules available * added dictionaries for patches * netlib-scalapack: ported to CMakePackage
69 lines
2.6 KiB
Python
69 lines
2.6 KiB
Python
##############################################################################
|
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
|
# Produced at the Lawrence Livermore National Laboratory.
|
|
#
|
|
# This file is part of Spack.
|
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
|
# LLNL-CODE-647188
|
|
#
|
|
# For details, see https://github.com/llnl/spack
|
|
# Please also see the LICENSE file for our notice and the LGPL.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU Lesser General Public License (as
|
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but
|
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
|
# conditions of the GNU Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
##############################################################################
|
|
|
|
from spack import *
|
|
|
|
|
|
class Elpa(AutotoolsPackage):
|
|
"""Eigenvalue solvers for Petaflop-Applications (ELPA)"""
|
|
|
|
homepage = 'http://elpa.mpcdf.mpg.de/'
|
|
url = 'http://elpa.mpcdf.mpg.de/elpa-2015.11.001.tar.gz'
|
|
|
|
version('2016.05.004', 'c0dd3a53055536fc3a2a221e78d8b376')
|
|
version('2016.05.003', '88a9f3f3bfb63e16509dd1be089dcf2c')
|
|
version('2015.11.001', 'de0f35b7ee7c971fd0dca35c900b87e6')
|
|
|
|
variant('openmp', default=False, description='Activates OpenMP support')
|
|
|
|
depends_on('mpi')
|
|
depends_on('blas')
|
|
depends_on('lapack')
|
|
depends_on('scalapack')
|
|
|
|
def url_for_version(self, version):
|
|
t = 'http://elpa.mpcdf.mpg.de/html/Releases/{0}/elpa-{0}.tar.gz'
|
|
if version < Version('2016.05.003'):
|
|
t = 'http://elpa.mpcdf.mpg.de/elpa-{0}.tar.gz'
|
|
return t.format(str(version))
|
|
|
|
def setup_environment(self, spack_env, run_env):
|
|
|
|
spec = self.spec
|
|
|
|
spack_env.set('CC', spec['mpi'].mpicc)
|
|
spack_env.set('FC', spec['mpi'].mpifc)
|
|
spack_env.set('CXX', spec['mpi'].mpicxx)
|
|
|
|
spack_env.set('LDFLAGS', spec['lapack'].libs.search_flags)
|
|
spack_env.set('LIBS', spec['lapack'].libs.link_flags)
|
|
spack_env.set('SCALAPACK_LDFLAGS', spec['scalapack'].libs.joined())
|
|
|
|
def configure_args(self):
|
|
options = []
|
|
if '+openmp' in self.spec:
|
|
options.append("--enable-openmp")
|
|
return options
|