diff options
author | AMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com> | 2021-12-16 09:15:17 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 21:45:17 -0600 |
commit | 42677ded8ebe4bdd2e53c7f1e9014a50c37b7522 (patch) | |
tree | cf5683b1834a5ffee5dc6bb9f62766a043c70000 | |
parent | d375a7ea0aeaa9a18d8f237626e2ff0fed2134a1 (diff) | |
download | spack-42677ded8ebe4bdd2e53c7f1e9014a50c37b7522.tar.gz spack-42677ded8ebe4bdd2e53c7f1e9014a50c37b7522.tar.bz2 spack-42677ded8ebe4bdd2e53c7f1e9014a50c37b7522.tar.xz spack-42677ded8ebe4bdd2e53c7f1e9014a50c37b7522.zip |
Fix for OpenFOAM pthread issue for AOCC 3.2 (#27949)
* Fix for OpenFOAM pthread issue for AOCC 3.2
* addressing the review comments
* updating when command for aocc v3.2.0 and above
Co-authored-by: mohan babu <mohbabul@amd.com>
-rw-r--r-- | var/spack/repos/builtin/packages/openfoam/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openfoam/package.py b/var/spack/repos/builtin/packages/openfoam/package.py index 146b8a838b..118f780602 100644 --- a/var/spack/repos/builtin/packages/openfoam/package.py +++ b/var/spack/repos/builtin/packages/openfoam/package.py @@ -559,6 +559,18 @@ class Openfoam(Package): filter_file(r'trapFpe\s+\d+\s*;', 'trapFpe 0;', controlDict, backup=False) + @when('@:2106 %aocc@3.2.0:') + @run_before('configure') + def make_amd_rules(self): + """Due to the change in the linker behavior in AOCC v3.2, it is now + issuing diagnostic messages for the unreferenced symbols in the + shared objects as it may lead to run time failures. + """ + general_rules = 'wmake/rules/General' + src = join_path(general_rules, 'Clang') + filter_file('clang++', spack_cxx + ' -pthread', join_path(src, 'c++'), + backup=False, string=True) + @when('@1812: %fj') @run_before('configure') def make_fujitsu_rules(self): |