summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJim Galarowicz <jeg@trenzasynergy.com>2020-08-13 15:41:20 -0500
committerGitHub <noreply@github.com>2020-08-13 15:41:20 -0500
commitc0342e41521110a3c1d784678f83d262e54a30df (patch)
tree21138e1c6d0e27e4c95839fa0fff15d037058a7d /var
parent83982656387798ff2b98db7f487ff784b67793f0 (diff)
downloadspack-c0342e41521110a3c1d784678f83d262e54a30df.tar.gz
spack-c0342e41521110a3c1d784678f83d262e54a30df.tar.bz2
spack-c0342e41521110a3c1d784678f83d262e54a30df.tar.xz
spack-c0342e41521110a3c1d784678f83d262e54a30df.zip
Update the change to add gomp compatibity to llvm-openmp. (#17400)
* Update the change to add gomp compatibity to llvm-openmp. * Update the change to add gomp compatibity to llvm-openmp using append instead of extend. * Fix flake8 issue. Co-authored-by: Jim Galarowicz <jgalarowicz@newmexicoconsortium.org>
Diffstat (limited to 'var')
-rwxr-xr-x[-rw-r--r--]var/spack/repos/builtin/packages/llvm-openmp/package.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/llvm-openmp/package.py b/var/spack/repos/builtin/packages/llvm-openmp/package.py
index 166b0c7a6e..831a32f745 100644..100755
--- a/var/spack/repos/builtin/packages/llvm-openmp/package.py
+++ b/var/spack/repos/builtin/packages/llvm-openmp/package.py
@@ -18,10 +18,20 @@ class LlvmOpenmp(CMakePackage):
depends_on('cmake@2.8:', type='build')
+ variant('multicompat', default=False,
+ description="Support gomp and the Intel openMP runtime library.")
+
def cmake_args(self):
+
# Disable LIBOMP_INSTALL_ALIASES, otherwise the library is installed as
# libgomp alias which can conflict with GCC's libgomp.
- return ['-DLIBOMP_INSTALL_ALIASES=OFF']
+ cmake_args = [
+ '-DLIBOMP_INSTALL_ALIASES=OFF'
+ ]
+ # Add optional support for both Intel and gcc compilers
+ if self.spec.satisfies('+multicompat'):
+ cmake_args.append('-DKMP_GOMP_COMPAT=1')
+ return cmake_args
@property
def libs(self):