Skip to content

Commit 2a2a215

Browse files
authored
Merge pull request #865 from xylar/update-to-1.6.0-alpha.1
Update to 1.6.0 alpha.1
2 parents 6e90cb8 + 88de99f commit 2a2a215

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

compass/machines/pm-gpu.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ spack = /global/cfs/cdirs/e3sm/software/compass/pm-gpu/spack
3131
# pnetcdf as E3SM (spack modules are used otherwise)
3232
use_e3sm_hdf5_netcdf = True
3333

34+
# spack variants for Albany and Trilinos
35+
albany_variants = +mpas~py+unit_tests+cuda+uvm+sfad sfadsize=12
36+
trilinos_variants = +cuda+uvm+ampere80+zen3
37+
3438
# The parallel section describes options related to running jobs in parallel.
3539
# Most options in this section come from mache so here we just add or override
3640
# some defaults

compass/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.5.0-alpha.1'
1+
__version__ = '1.6.0-alpha.1'

conda/bootstrap.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,8 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901
470470
tmpdir, logger):
471471

472472
albany = config.get('deploy', 'albany')
473+
albany_variants = config.get('deploy', 'albany_variants')
474+
trilinos_variants = config.get('deploy', 'trilinos_variants')
473475
cmake = config.get('deploy', 'cmake')
474476
esmf = config.get('deploy', 'esmf')
475477
lapack = config.get('deploy', 'lapack')
@@ -479,9 +481,6 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901
479481
scorpio = config.get('deploy', 'scorpio')
480482
parallelio = config.get('deploy', 'parallelio')
481483

482-
# for now, we'll assume Cuda is needed anytime GPUs are present
483-
with_cuda = config.has_option('parallel', 'gpus_per_node')
484-
485484
if config.has_option('deploy', 'spack_mirror'):
486485
spack_mirror = config.get('deploy', 'spack_mirror')
487486
else:
@@ -543,14 +542,8 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901
543542
f'@{parallelio}+pnetcdf~timing"')
544543

545544
if albany != 'None':
546-
if with_cuda:
547-
albany_cuda = '+cuda+uvm+sfad sfadsize=12'
548-
trilinos_cuda = '+cuda+uvm'
549-
else:
550-
albany_cuda = ''
551-
trilinos_cuda = ''
552-
specs.append(f'"trilinos-for-albany@{albany}{trilinos_cuda}"')
553-
specs.append(f'"albany@{albany}+mpas~py+unit_tests{albany_cuda}"')
545+
specs.append(f'"trilinos-for-albany@{albany}{trilinos_variants}"')
546+
specs.append(f'"albany@{albany}{albany_variants}"')
554547

555548
yaml_template = f'{spack_template_path}/{machine}_{compiler}_{mpi}.yaml'
556549
if not os.path.exists(yaml_template):

conda/compass_env/spec-file.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ ipython
1616
jupyter
1717
lxml
1818
{% if include_mache %}
19-
mache=1.25.0
19+
mache=1.26.0
2020
{% endif %}
2121
matplotlib-base >=3.9.1
2222
metis
2323
moab >=5.5.1
2424
moab=*={{ mpi_prefix }}_tempest_*
25-
mpas_tools=0.34.1
25+
mpas_tools=0.35.0
2626
nco
2727
netcdf4=*=nompi_*
2828
numpy >=2.0,<3.0

conda/configure_compass_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def main():
102102
if local_mache:
103103
mache = ''
104104
else:
105-
mache = '"mache=1.25.0"'
105+
mache = '"mache=1.26.0"'
106106

107107
setup_install_env(env_name, activate_base, args.use_local, logger,
108108
args.recreate, conda_base, mache)

conda/default.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ mpi = nompi
2121

2222
# the version of various packages to include if using spack
2323
albany = compass-2024-03-13
24+
# spack variants for Albany and Trilinos
25+
albany_variants = +mpas~py+unit_tests
26+
trilinos_variants =
2427
# cmake newer than 3.23.0 needed for Trilinos
2528
cmake = 3.23.0:
2629
esmf = 8.6.1

0 commit comments

Comments
 (0)