CrayPE fix for axom (#23520)

Pass -ef to the cce fortran compiler, fix the build system to use the correct openmp flag for CCE

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
lukebroskop 2021-05-17 12:22:16 -05:00 committed by GitHub
parent 9d251e51a1
commit dd350e83d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,6 +371,9 @@ def initconfig_package_entries(self):
def cmake_args(self):
options = []
if self.spec.satisfies('%cce'):
options.append('-DCMAKE_Fortran_FLAGS=-ef')
if self.run_tests is False:
options.append('-DENABLE_TESTS=OFF')
else:
@ -380,3 +383,9 @@ def cmake_args(self):
'BUILD_SHARED_LIBS', 'shared'))
return options
def patch(self):
if self.spec.satisfies('%cce'):
filter_file('PROPERTIES LINKER_LANGUAGE CXX',
'PROPERTIES LINKER_LANGUAGE CXX \n LINK_FLAGS "-fopenmp"',
'src/axom/quest/examples/CMakeLists.txt')