From a5086b75d745356954f5bb0aaead9c0b01378a2b Mon Sep 17 00:00:00 2001 From: "K. Noel Belcourt" Date: Fri, 13 Jan 2012 20:47:36 +0000 Subject: [PATCH] Fixes for PGI threading and ublas. [SVN r76468] --- include/boost/config/compiler/pgi.hpp | 2 ++ include/boost/config/requires_threads.hpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/include/boost/config/compiler/pgi.hpp b/include/boost/config/compiler/pgi.hpp index 1834e300..706cfeb1 100644 --- a/include/boost/config/compiler/pgi.hpp +++ b/include/boost/config/compiler/pgi.hpp @@ -19,6 +19,8 @@ #if __PGIC__ >= 11 // options requested by configure --enable-test +#define BOOST_HAS_PTHREADS +#undef BOOST_HAS_PTHREAD_YIELD #define BOOST_HAS_NRVO #define BOOST_HAS_LONG_LONG diff --git a/include/boost/config/requires_threads.hpp b/include/boost/config/requires_threads.hpp index cfaff230..eb5b635a 100644 --- a/include/boost/config/requires_threads.hpp +++ b/include/boost/config/requires_threads.hpp @@ -81,6 +81,11 @@ // example) also #define _MSC_VER # error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd" +#elif defined __PGIC__ +// PGI +// +// No compiler support for threading + #else # error "Compiler threading support is not turned on. Please consult your compiler's documentation for the appropriate options to use"