summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com>2021-02-09 00:52:59 +0530
committerGitHub <noreply@github.com>2021-02-08 13:22:59 -0600
commitfc374febf2a9cd977ed1b7d2b1b186a6c4fcc50a (patch)
treed1118c85892d6195e5bd9226342749b8b8aad7d7 /var
parent6447ec6ff5007a5cc15882f2bcd661de62a5c619 (diff)
downloadspack-fc374febf2a9cd977ed1b7d2b1b186a6c4fcc50a.tar.gz
spack-fc374febf2a9cd977ed1b7d2b1b186a6c4fcc50a.tar.bz2
spack-fc374febf2a9cd977ed1b7d2b1b186a6c4fcc50a.tar.xz
spack-fc374febf2a9cd977ed1b7d2b1b186a6c4fcc50a.zip
amdtoolchain support for openfoam (#21536)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openfoam/package.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/openfoam/package.py b/var/spack/repos/builtin/packages/openfoam/package.py
index 14e5a339e2..126de81f64 100644
--- a/var/spack/repos/builtin/packages/openfoam/package.py
+++ b/var/spack/repos/builtin/packages/openfoam/package.py
@@ -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 @@ class Openfoam(Package):
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