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:
parent
b6c124572c
commit
b27ac37547
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user