Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum cmake for trilinos #549

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: conda

# Can run individually with `pre-commit run isort --all-files`
- repo: https://github.com/PyCQA/isort
Expand Down
2 changes: 1 addition & 1 deletion compass/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.2.0-alpha.4'
__version__ = '1.2.0-alpha.5'
23 changes: 14 additions & 9 deletions conda/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, spack_env,
spack_base, spack_template_path, env_vars, tmpdir, logger):

albany = config.get('deploy', 'albany')
cmake = config.get('deploy', 'cmake')
esmf = config.get('deploy', 'esmf')
lapack = config.get('deploy', 'lapack')
petsc = config.get('deploy', 'petsc')
Expand All @@ -395,34 +396,38 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, spack_env,

specs = list()

if cmake != 'None':
specs.append(f'cmake "@{cmake}"')

e3sm_hdf5_netcdf = config.getboolean('deploy', 'use_e3sm_hdf5_netcdf')
if not e3sm_hdf5_netcdf:
hdf5 = config.get('deploy', 'hdf5')
netcdf_c = config.get('deploy', 'netcdf_c')
netcdf_fortran = config.get('deploy', 'netcdf_fortran')
pnetcdf = config.get('deploy', 'pnetcdf')
specs.extend([
f'hdf5@{hdf5}+cxx+fortran+hl+mpi+shared',
f'netcdf-c@{netcdf_c}+mpi~parallel-netcdf',
f'netcdf-fortran@{netcdf_fortran}',
f'parallel-netcdf@{pnetcdf}+cxx+fortran'])
f'hdf5 "@{hdf5}+cxx+fortran+hl+mpi+shared"',
f'netcdf-c "@{netcdf_c}+mpi~parallel-netcdf"',
f'netcdf-fortran "@{netcdf_fortran}"',
f'parallel-netcdf "@{pnetcdf}+cxx+fortran"'])

if esmf != 'None':
specs.append(f'esmf@{esmf}+mpi+netcdf~pio+pnetcdf')
specs.append(f'esmf "@{esmf}+mpi+netcdf~pio+pnetcdf"')
if lapack != 'None':
specs.append(f'netlib-lapack@{lapack}')
specs.append(f'netlib-lapack "@{lapack}"')
include_e3sm_lapack = False
else:
include_e3sm_lapack = True
if petsc != 'None':
specs.append(f'petsc@{petsc}+mpi+batch')
specs.append(f'petsc "@{petsc}+mpi+batch"')

if scorpio != 'None':
specs.append(
f'scorpio@{scorpio}+pnetcdf~timing+internal-timing~tools+malloc')
f'scorpio '
f'"@{scorpio}+pnetcdf~timing+internal-timing~tools+malloc"')

if albany != 'None':
specs.append(f'albany@{albany}+mpas')
specs.append(f'albany "@{albany}+mpas"')

yaml_template = f'{spack_template_path}/{machine}_{compiler}_{mpi}.yaml'
if not os.path.exists(yaml_template):
Expand Down
2 changes: 1 addition & 1 deletion conda/compass_env/spec-file.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jigsawpy=0.3.3
jupyter
lxml
{% if include_mache %}
mache=1.10.0
mache=1.13.0
{% endif %}
matplotlib-base
metis
Expand Down
2 changes: 1 addition & 1 deletion conda/configure_compass_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def main():
if local_mache:
mache = ''
else:
mache = '"mache=1.10.0"'
mache = '"mache=1.13.0"'

setup_install_env(env_name, activate_base, args.use_local, logger,
args.recreate, conda_base, mache)
Expand Down
2 changes: 2 additions & 0 deletions conda/default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ mpi = nompi

# the version of various packages to include if using spack
albany = develop
# cmake newer than 3.23.0 needed for Trilinos
cmake = 3.23.0:
esmf = 8.2.0
hdf5 = 1.12.1
lapack = 3.9.1
Expand Down
4 changes: 2 additions & 2 deletions conda/recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "compass" %}
{% set version = "1.2.0alpha.4" %}
{% set version = "1.2.0alpha.5" %}
{% set build = 0 %}

{% if mpi == "nompi" %}
Expand Down Expand Up @@ -52,7 +52,7 @@ requirements:
- jigsawpy 0.3.3
- jupyter
- lxml
- mache 1.10.0
- mache 1.13.0
- matplotlib-base
- metis
- mpas_tools 0.17.0
Expand Down