Hi,

On Tue, Sep 11, 2012 at 9:38 PM, Paul Hargrove <phhargr...@lbl.gov> wrote:
> Following-up as promised:
> My build w/ PGI-7.2-5 has completed and produces the same error (and
> warnings) as seen w/ 8.0-6 and reported in the message quoted below.

Thanks. I don't know since the PGI has support for "omp
threadprivate()" but I can easily disable it for all pre 9.0 PGI
compilers with this patch to vt_unify.h:

@@ -51,11 +51,23 @@
          // disable OpenMP, if compiler version is less than 4.2.4
 #        if __OPENCC__ < 4 || (__OPENCC__ == 4 && (__OPENCC_MINOR__ <
2 || (__OPENCC_MINOR__ == 2 && __OPENCC_PATCHLEVEL__ < 4)))
 #           undef HAVE_OMP
 #        endif
 #     endif
-#  endif // __OPEN64__
+
+   // pre PGI 9.0 do not have "omp threadprivate()"
+#  elif defined(__PGI)
+#     if !defined(__PGIC__) || !defined(__PGIC_MINOR__) ||
!defined(__PGIC_PATCHLEVEL__)
+         // unknown compiler version; disable OpenMP to be on the safe side
+#        undef HAVE_OMP
+#     else
+         // disable OpenMP, if compiler version is less than 9.0
+#        if __PGIC__ < 9
+#           undef HAVE_OMP
+#        endif
+#     endif
+#  endif // __PGI
 #endif // HAVE_OMP
 #if defined(HAVE_OMP) && HAVE_OMP
 #  include <omp.h>
 #endif // HAVE_OMP

I hope that the predefines did not change for compilers prior version
11.0, which is the oldest I have at hand here.

It would be great if you could test it, so that we can fast track a
patch tomorrow German time.

Thanks in advance.

Bert

>
> -Paul
>

Reply via email to