Added workaround for PGI compiler bug (see http://www.pgroup.com/support/release_tprs_90.htm TPR 4337):
Disable OpenMP if compiler version is less than 9.0-3. This commit was SVN r23274.
Этот коммит содержится в:
родитель
6cbe947810
Коммит
1467f2db52
@ -3,6 +3,9 @@
|
||||
version of the OTF library
|
||||
(so it's possible to add these objects to 3rd-party shared libraries)
|
||||
- fixed and enhanced calculation of trace file size in otfinfo
|
||||
- added workaround for PGI compiler bug which occurred in otfprofile
|
||||
disable OpenMP if compiler version is less than 9.0-3
|
||||
(see http://www.pgroup.com/support/release_tprs_90.htm TPR 4337)
|
||||
- patched libtool:
|
||||
- to avoid a bug in detection of the PGI 10 C++ compiler
|
||||
- to detect IBM cross compilers on BlueGene/P
|
||||
|
@ -7,6 +7,19 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* Workaround for PGI compiler bug (see Technical Problem Report 4337):
|
||||
Disable OpenMP if compiler version is less than 9.0-3. */
|
||||
#if defined(_OPENMP) && defined(__PGI)
|
||||
# undef _OPENMP
|
||||
# if defined(__PGIC__) && defined(__PGIC_MINOR__) && defined(__PGIC_PATCHLEVEL__)
|
||||
# if (__PGIC__ > 9 ) || \
|
||||
(__PGIC__ == 9 && __PGIC_MINOR__ > 0 ) || \
|
||||
(__PGIC__ == 9 && __PGIC_MINOR__ == 0 && __PGIC_PATCHLEVEL__ > 2)
|
||||
# define _OPENMP
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef _OPENMP
|
||||
# include <omp.h>
|
||||
#else
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user