CrayPE fixes for MAGMA (#23497)

Force CCE to compile fortran modules with lower case names, allow for CCE to be the host compiler with nvcc
This commit is contained in:
lukebroskop 2021-05-10 19:42:56 -05:00 committed by GitHub
parent b6c124572c
commit b27ac37547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,9 @@ def cmake_args(self):
options += ['-DBUILD_SHARED_LIBS=%s' %
('ON' if ('+shared' in spec) else 'OFF')]
if spec.satisfies('%cce'):
options += ['-DCUDA_NVCC_FLAGS=-allow-unsupported-compiler']
if '+fortran' in spec:
options.extend([
'-DUSE_FORTRAN=yes'
@ -83,6 +86,9 @@ def cmake_args(self):
'-DCMAKE_Fortran_COMPILER=%s' % self.compiler.f77
])
if spec.satisfies('%cce'):
options.append('-DCMAKE_Fortran_FLAGS=-ef')
if spec.satisfies('^cuda'):
cuda_arch = self.spec.variants['cuda_arch'].value
if '@:2.2.0' in spec: