Skip to content

Commit

Permalink
Add +sfad12 variant to albany spack build with cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Aug 13, 2024
1 parent 15a87f4 commit 12a8489
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions conda/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,11 +540,13 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901

if albany != 'None':
if with_cuda:
cuda = '+cuda+uvm'
albany_cuda = '+cuda+uvm+sfad12'
trilinos_cuda = '+cuda+uvm'
else:
cuda = ''
specs.append(f'"trilinos-for-albany@{albany}{cuda}"')
specs.append(f'"albany@{albany}+mpas~py+unit_tests{cuda}"')
albany_cuda = ''
trilinos_cuda = ''
specs.append(f'"trilinos-for-albany@{albany}{albany_cuda}"')
specs.append(f'"albany@{albany}+mpas~py+unit_tests{trilinos_cuda}"')

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

0 comments on commit 12a8489

Please sign in to comment.