OpenMP is intrinsic to PGI

pull/5733/head
Michael Hirsch, Ph.D 6 years ago
parent 0706434afe
commit fe638d63d9
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 13
      mesonbuild/dependencies/misc.py

@ -374,9 +374,16 @@ class OpenMPDependency(ExternalDependency):
openmp_date = self.clib_compiler.get_define(
'_OPENMP', '', self.env, self.clib_compiler.openmp_flags(), [self], disable_cache=True)[0]
except mesonlib.EnvironmentException as e:
mlog.debug('OpenMP support not available in the compiler')
mlog.debug(e)
openmp_date = False
if self.clib_compiler.get_id() == 'pgi':
# through at least PGI 19.4, there is no macro defined for OpenMP, but OpenMP 3.1 is supported.
self.version = '3.1'
self.is_found = True
self.compile_args = self.link_args = self.clib_compiler.openmp_flags()
return
else:
mlog.debug('OpenMP support not available in the compiler')
mlog.debug(e)
openmp_date = None
if openmp_date:
self.version = self.VERSIONS[openmp_date]

Loading…
Cancel
Save