Added GPTune v3.0.0 and its dependency py-pymoo (#30119)

This commit is contained in:
liuyangzhuan 2022-04-27 03:21:44 -07:00 committed by GitHub
parent 9d4cedac51
commit 9fc6494a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View File

@ -13,11 +13,12 @@ class Gptune(CMakePackage):
Bayesian optimization methodologies."""
homepage = "https://gptune.lbl.gov/"
url = "https://github.com/gptune/GPTune/archive/refs/tags/2.1.0.tar.gz"
url = "https://github.com/gptune/GPTune/archive/refs/tags/3.0.0.tar.gz"
git = "https://github.com/gptune/GPTune.git"
maintainers = ['liuyangzhuan']
version('master', branch='master')
version('3.0.0', sha256='e19bfc3033fff11ff8c20cae65b88b7ca005d2c4e4db047f9f23226126ec92fa')
version('2.1.0', sha256='737e0a1d83f66531098beafa73dd479f12def576be83b1c7b8ea5f1615d60a53')
variant('superlu', default=False, description='Build the SuperLU_DIST example')
@ -52,6 +53,7 @@ class Gptune(CMakePackage):
depends_on('py-mpi4py@3.0.3:', type=('build', 'run'))
depends_on('pygmo', type=('build', 'run'))
depends_on('openturns', type=('build', 'run'))
depends_on('py-pymoo', type=('build', 'run'), when='@3.0.0:')
depends_on('superlu-dist@develop', when='+superlu', type=('build', 'run'))
depends_on('hypre+gptune@2.19.0', when='+hypre', type=('build', 'run'))

View File

@ -0,0 +1,23 @@
# 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)
# Package automatically generated using 'pip2spack' converter
class PyPymoo(PythonPackage):
"""
Multi-Objective Optimization in Python
"""
homepage = "https://pymoo.org"
pypi = 'pymoo/pymoo-0.5.0.tar.gz'
maintainers = ['liuyangzhuan']
version('0.5.0', sha256='2fbca1716f6b45e430197ce4ce2210070fd3b6b9ec6b17bb25d98486115272c2')
version('0.4.2', sha256='6ec382a7d29c8775088eec7f245a30fd384b42c40f230018dea0e3bcd9aabdf1')
depends_on('python@3.4:', type=('build', 'run'))
depends_on('py-autograd', type=('build', 'run'))
depends_on('py-setuptools', type='build')