amdtoolchain support for openfoam (#21536)

This commit is contained in:
AMD Toolchain Support 2021-02-09 00:52:59 +05:30 committed by GitHub
parent 6447ec6ff5
commit fc374febf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,7 +314,7 @@ class Openfoam(Package):
# conflicts('^openmpi~thread_multiple', when='@1712:')
depends_on('zlib')
depends_on('fftw')
depends_on('fftw-api')
depends_on('boost')
depends_on('cgal')
# The flex restriction is ONLY to deal with a spec resolution clash
@ -629,10 +629,10 @@ def configure(self, spec, prefix):
pkglib(spec['cgal'], '${CGAL_ARCH_PATH}'))),
],
'FFTW': [
('FFTW_ARCH_PATH', spec['fftw'].prefix), # Absolute
('FFTW_ARCH_PATH', spec['fftw-api'].prefix), # Absolute
('LD_LIBRARY_PATH',
foam_add_lib(
pkglib(spec['fftw'], '${BOOST_ARCH_PATH}'))),
pkglib(spec['fftw-api'], '${BOOST_ARCH_PATH}'))),
],
# User-defined MPI
'mpi-user': [
@ -855,7 +855,7 @@ class OpenfoamArch(object):
#: Map spack compiler names to OpenFOAM compiler names
# By default, simply capitalize the first letter
compiler_mapping = {'intel': 'Icc', 'fj': 'Fujitsu'}
compiler_mapping = {'intel': 'Icc', 'fj': 'Fujitsu', 'aocc': 'Amd'}
def __init__(self, spec, **kwargs):
# Some user settings, to be adjusted manually or via variants