From 2df73cae384bae6afeeadd738ccddcce5ac47803 Mon Sep 17 00:00:00 2001 From: Frank Willmore Date: Fri, 6 Nov 2020 15:56:42 -0600 Subject: Mumps oneapi (#19786) added oneapi compiler to directives for mumps package Co-authored-by: Frank Willmore --- var/spack/repos/builtin/packages/mumps/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/mumps/package.py b/var/spack/repos/builtin/packages/mumps/package.py index c4ea250235..51fe2a9f06 100644 --- a/var/spack/repos/builtin/packages/mumps/package.py +++ b/var/spack/repos/builtin/packages/mumps/package.py @@ -113,6 +113,7 @@ class Mumps(Package): using_pgi = self.compiler.name == "pgi" using_nvhpc = self.compiler.name == "nvhpc" using_intel = self.compiler.name == "intel" + using_oneapi = self.compiler.name == "oneapi" using_xl = self.compiler.name in ['xl', 'xl_r'] using_fj = self.compiler.name == "fj" @@ -180,7 +181,7 @@ class Mumps(Package): # TODO: change the value to the correct one according to the # compiler possible values are -DAdd_, -DAdd__ and/or -DUPPER - if using_intel or using_pgi or using_nvhpc or using_fj: + if using_intel or using_oneapi or using_pgi or using_nvhpc or using_fj: # Intel, PGI, and Fujitsu Fortran compiler provides # the main() function so C examples linked with the Fortran # compiler require a hack defined by _DMAIN_COMP -- cgit v1.2.3-70-g09d2