CrayPE fix for trilinos (#23518)

Expand the use of cray_secas.patch and use the gold linker w/cce

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
lukebroskop 2021-05-17 11:23:24 -05:00 committed by GitHub
parent 87466df80f
commit b462ccb565
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -442,7 +442,13 @@ class Trilinos(CMakePackage, CudaPackage):
patch('xlf_tpetra.patch', when='@12.12.1%clang')
patch('fix_clang_errors_12_18_1.patch', when='@12.18.1%clang')
patch('cray_secas_12_12_1.patch', when='@12.12.1%cce')
patch('cray_secas.patch', when='@12.14.1:12.18.1%cce')
patch('cray_secas.patch', when='@12.14.1:%cce')
def flag_handler(self, name, flags):
if self.spec.satisfies('%cce'):
if name == 'ldflags':
flags.append('-fuse-ld=gold')
return (None, None, flags)
# workaround an NVCC bug with c++14 (https://github.com/trilinos/Trilinos/issues/6954)
# avoid calling deprecated functions with CUDA-11