Re: [Boost-bugs] [Boost C++ Libraries] #6354: PGI: Compiler threading support is not turned on

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6354: PGI: Compiler threading support is not turned on
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-05 15:32:39


#6354: PGI: Compiler threading support is not turned on
--------------------------------------+-------------------------------------
  Reporter: viboes | Owner: viboes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: build threading=multi
--------------------------------------+-------------------------------------

Comment (by Lars Viklund <zao@…>):

 `boost/config/compiler/pgi.hpp` defines `BOOST_HAS_PTHREADS` but not
 `BOOST_HAS_THREADS`, resulting in failure in the `requires_threads.hpp`
 header mentioned in the report.

 As far as I can tell, there's no particular compiler flag needed to enable
 threading in current PGI versions.
 Simply hacking in a
 {{{#!cpp
 #define BOOST_HAS_THREADS
 }}}
 in the pgi.hpp header seems to have done the trick for threading on my
 tested configuration (11.8).

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6354#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC