update boost on linux
This commit is contained in:
@@ -11,11 +11,14 @@
|
||||
#ifndef BOOST_COMPUTE_ALGORITHM_COUNT_HPP
|
||||
#define BOOST_COMPUTE_ALGORITHM_COUNT_HPP
|
||||
|
||||
#include <boost/static_assert.hpp>
|
||||
|
||||
#include <boost/compute/lambda.hpp>
|
||||
#include <boost/compute/system.hpp>
|
||||
#include <boost/compute/command_queue.hpp>
|
||||
#include <boost/compute/algorithm/count_if.hpp>
|
||||
#include <boost/compute/type_traits/vector_size.hpp>
|
||||
#include <boost/compute/type_traits/is_device_iterator.hpp>
|
||||
|
||||
namespace boost {
|
||||
namespace compute {
|
||||
@@ -23,6 +26,9 @@ namespace compute {
|
||||
/// Returns the number of occurrences of \p value in the range
|
||||
/// [\p first, \p last).
|
||||
///
|
||||
/// Space complexity on CPUs: \Omega(1)<br>
|
||||
/// Space complexity on GPUs: \Omega(n)
|
||||
///
|
||||
/// \see count_if()
|
||||
template<class InputIterator, class T>
|
||||
inline size_t count(InputIterator first,
|
||||
@@ -30,6 +36,7 @@ inline size_t count(InputIterator first,
|
||||
const T &value,
|
||||
command_queue &queue = system::default_queue())
|
||||
{
|
||||
BOOST_STATIC_ASSERT(is_device_iterator<InputIterator>::value);
|
||||
typedef typename std::iterator_traits<InputIterator>::value_type value_type;
|
||||
|
||||
using ::boost::compute::_1;
|
||||
|
||||
Reference in New Issue
Block a user