Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r76468 - in trunk/boost: config config/compiler numeric/ublas/detail
From: kbelco_at_[hidden]
Date: 2012-01-13 15:47:37


Author: noel_belcourt
Date: 2012-01-13 15:47:36 EST (Fri, 13 Jan 2012)
New Revision: 76468
URL: http://svn.boost.org/trac/boost/changeset/76468

Log:
Fixes for PGI threading and ublas.

Text files modified:
   trunk/boost/config/compiler/pgi.hpp | 2 ++
   trunk/boost/config/requires_threads.hpp | 5 +++++
   trunk/boost/numeric/ublas/detail/config.hpp | 4 ++++
   3 files changed, 11 insertions(+), 0 deletions(-)

Modified: trunk/boost/config/compiler/pgi.hpp
==============================================================================
--- trunk/boost/config/compiler/pgi.hpp (original)
+++ trunk/boost/config/compiler/pgi.hpp 2012-01-13 15:47:36 EST (Fri, 13 Jan 2012)
@@ -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
 

Modified: trunk/boost/config/requires_threads.hpp
==============================================================================
--- trunk/boost/config/requires_threads.hpp (original)
+++ trunk/boost/config/requires_threads.hpp 2012-01-13 15:47:36 EST (Fri, 13 Jan 2012)
@@ -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"

Modified: trunk/boost/numeric/ublas/detail/config.hpp
==============================================================================
--- trunk/boost/numeric/ublas/detail/config.hpp (original)
+++ trunk/boost/numeric/ublas/detail/config.hpp 2012-01-13 15:47:36 EST (Fri, 13 Jan 2012)
@@ -123,6 +123,10 @@
 
 #endif
 
+// PGI compiler
+#ifdef __PGIC__
+#define BOOST_UBLAS_UNSUPPORTED_COMPILER 0
+#endif
 
 // HP aCC C++ compiler
 #if defined (__HP_aCC) && ! defined (BOOST_STRICT_CONFIG)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk