Skip to content

Commit 6dfb627

Browse files
committed
Add +sfad variant to albany spack build with cuda
1 parent 15a87f4 commit 6dfb627

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

conda/bootstrap.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,13 @@ def build_spack_env(config, update_spack, machine, compiler, mpi, # noqa: C901
540540

541541
if albany != 'None':
542542
if with_cuda:
543-
cuda = '+cuda+uvm'
543+
albany_cuda = '+cuda+uvm+sfad sfadsize=12'
544+
trilinos_cuda = '+cuda+uvm'
544545
else:
545-
cuda = ''
546-
specs.append(f'"trilinos-for-albany@{albany}{cuda}"')
547-
specs.append(f'"albany@{albany}+mpas~py+unit_tests{cuda}"')
546+
albany_cuda = ''
547+
trilinos_cuda = ''
548+
specs.append(f'"trilinos-for-albany@{albany}{trilinos_cuda}"')
549+
specs.append(f'"albany@{albany}+mpas~py+unit_tests{albany_cuda}"')
548550

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

0 commit comments

Comments
 (0)