Server IP : 104.21.38.3 / Your IP : 172.68.242.72 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/boost/boost_1_59_0/boost/graph/parallel/ |
Upload File : |
// Copyright 2004 The Trustees of Indiana University. // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Authors: Douglas Gregor // Andrew Lumsdaine #ifndef BOOST_PARALLEL_ALGORITHM_HPP #define BOOST_PARALLEL_ALGORITHM_HPP #ifndef BOOST_GRAPH_USE_MPI #error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included" #endif #include <boost/optional.hpp> #include <boost/config.hpp> // for BOOST_STATIC_CONSTANT #include <vector> #include <functional> namespace boost { namespace parallel { template<typename BinaryOp> struct is_commutative { BOOST_STATIC_CONSTANT(bool, value = false); }; template<typename T> struct minimum : std::binary_function<T, T, T> { const T& operator()(const T& x, const T& y) const { return x < y? x : y; } }; template<typename T> struct maximum : std::binary_function<T, T, T> { const T& operator()(const T& x, const T& y) const { return x < y? y : x; } }; template<typename T> struct sum : std::binary_function<T, T, T> { const T operator()(const T& x, const T& y) const { return x + y; } }; template<typename ProcessGroup, typename InputIterator, typename OutputIterator, typename BinaryOperation> OutputIterator reduce(ProcessGroup pg, typename ProcessGroup::process_id_type root, InputIterator first, InputIterator last, OutputIterator out, BinaryOperation bin_op); template<typename ProcessGroup, typename T, typename BinaryOperation> inline T all_reduce(ProcessGroup pg, const T& value, BinaryOperation bin_op) { T result; all_reduce(pg, const_cast<T*>(&value), const_cast<T*>(&value+1), &result, bin_op); return result; } template<typename ProcessGroup, typename T, typename BinaryOperation> inline T scan(ProcessGroup pg, const T& value, BinaryOperation bin_op) { T result; scan(pg, const_cast<T*>(&value), const_cast<T*>(&value+1), &result, bin_op); return result; } template<typename ProcessGroup, typename InputIterator, typename T> void all_gather(ProcessGroup pg, InputIterator first, InputIterator last, std::vector<T>& out); } } // end namespace boost::parallel #include <boost/graph/parallel/detail/inplace_all_to_all.hpp> #endif // BOOST_PARALLEL_ALGORITHM_HPP