Skip to content

add minimum visibility support #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ if [ mpi.configured ]
: <library>../../mpi/build//boost_mpi
<library>/mpi//mpi [ mpi.extra-requirements ]
<define>BOOST_GRAPH_NO_LIB=1
<link>shared:<define>BOOST_GRAPH_DYN_LINK=1
<link>shared:<define>BOOST_GRAPH_PARALLEL_DYN_LINK=1
<link>shared:<define>BOOST_GRAPH_PARALLEL_SOURCE
# # Intel compiler ICEs if we turn optimization on
<toolset>intel-vc71-win-9.1:<optimization>off
# Without these flags, MSVC 7.1 crash
Expand Down
6 changes: 4 additions & 2 deletions include/boost/graph/distributed/detail/tag_allocator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
#endif

#include <boost/graph/parallel/dll_import_export.hpp>

#include <vector>

namespace boost { namespace graph { namespace distributed { namespace detail {
Expand All @@ -26,7 +28,7 @@ namespace boost { namespace graph { namespace distributed { namespace detail {
* tag is returned and may be reallocated. These tags should be used,
* for example, for one-time communication of values.
*/
class tag_allocator {
class BOOST_GRAPH_PARALLEL_DECL tag_allocator {
public:
class token;
friend class token;
Expand All @@ -51,7 +53,7 @@ class tag_allocator {
/**
* A token used to represent an allocated tag.
*/
class tag_allocator::token {
class BOOST_GRAPH_PARALLEL_DECL tag_allocator::token {
public:
/// Transfer ownership of the tag from @p other.
token(const token& other);
Expand Down
10 changes: 6 additions & 4 deletions include/boost/graph/distributed/mpi_process_group.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#error "Parallel BGL files should not be included unless <boost/graph/use_mpi.hpp> has been included"
#endif

#include <boost/graph/parallel/dll_import_export.hpp>

//#define NO_SPLIT_BATCHES
#define SEND_OOB_BSEND

Expand All @@ -37,7 +39,7 @@ namespace boost { namespace graph { namespace distributed {
// Process group tags
struct mpi_process_group_tag : virtual boost::parallel::linear_process_group_tag { };

class mpi_process_group
class BOOST_GRAPH_PARALLEL_DECL mpi_process_group
{
struct impl;

Expand Down Expand Up @@ -624,7 +626,7 @@ inline mpi_process_group::process_size_type
num_processes(const mpi_process_group& pg)
{ return pg.size; }

mpi_process_group::communicator_type communicator(const mpi_process_group& pg);
BOOST_GRAPH_PARALLEL_DECL mpi_process_group::communicator_type communicator(const mpi_process_group& pg);

template<typename T>
void
Expand Down Expand Up @@ -657,10 +659,10 @@ mpi_process_group::process_id_type
receive(const mpi_process_group& pg,
mpi_process_group::process_id_type source, int tag, T& value);

optional<std::pair<mpi_process_group::process_id_type, int> >
BOOST_GRAPH_PARALLEL_DECL optional<std::pair<mpi_process_group::process_id_type, int> >
probe(const mpi_process_group& pg);

void synchronize(const mpi_process_group& pg);
BOOST_GRAPH_PARALLEL_DECL void synchronize(const mpi_process_group& pg);

template<typename T, typename BinaryOperation>
T*
Expand Down
26 changes: 26 additions & 0 deletions include/boost/graph/parallel/dll_import_export.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//=======================================================================
// Copyright 2018 Jürgen Hunold
//
// Distributed under 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)
//=======================================================================

#ifndef BOOST_GRAPH_PARALLEL_DLL_IMPORT_EXPORT_HPP
#define BOOST_GRAPH_PARALLEL_DLL_IMPORT_EXPORT_HPP

#include <boost/config.hpp>

#if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_GRAPH_PARALLEL_DYN_LINK)
# ifdef BOOST_GRAPH_PARALLEL_SOURCE
# define BOOST_GRAPH_PARALLEL_DECL BOOST_SYMBOL_EXPORT
# else
# define BOOST_GRAPH_PARALLEL_DECL BOOST_SYMBOL_IMPORT
# endif // BOOST_GRAPH_PARALLEL_SOURCE
#endif // DYN_LINK

#ifndef BOOST_GRAPH_PARALLEL_DECL
# define BOOST_GRAPH_PARALLEL_DECL
#endif

#endif // BOOST_GRAPH_PARALLEL_DLL_IMPORT_EXPORT_HPP