Skip to content

Commit

Permalink
Merge pull request #2551 from STEllAR-GROUP/fixing_2509
Browse files Browse the repository at this point in the history
Rename hwloc_topology to hwloc_topology_info
  • Loading branch information
hkaiser committed Mar 23, 2017
2 parents f63f668 + 8df0cb8 commit 6e92149
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 86 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2007-2015 Hartmut Kaiser
// Copyright (c) 2007-2017 Hartmut Kaiser
// Copyright (c) 2008-2009 Chirag Dekate, Anshul Tandon
// Copyright (c) 2012-2013 Thomas Heller
//
// 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 HPX_RUNTIME_THREADS_POLICIES_HWLOC_TOPOLOGY_HPP
#define HPX_RUNTIME_THREADS_POLICIES_HWLOC_TOPOLOGY_HPP
#ifndef HPX_RUNTIME_THREADS_POLICIES_HWLOC_TOPOLOGY_INFO_HPP
#define HPX_RUNTIME_THREADS_POLICIES_HWLOC_TOPOLOGY_INFO_HPP

#include <hpx/config.hpp>

Expand All @@ -29,17 +29,17 @@
#include <vector>

#if defined(HPX_NATIVE_MIC) && HWLOC_API_VERSION < 0x00010600
#error On Intel Xeon/Phi coprosessors HPX cannot be use with a HWLOC version earlier than V1.6.
#error On Intel Xeon/Phi coprocessors HPX cannot be use with a HWLOC version earlier than V1.6.
#endif

#include <hpx/config/warnings_prefix.hpp>

namespace hpx { namespace threads
{
struct HPX_EXPORT hwloc_topology : topology
struct HPX_EXPORT hwloc_topology_info : topology
{
hwloc_topology();
~hwloc_topology();
hwloc_topology_info();
~hwloc_topology_info();

std::size_t get_socket_number(
std::size_t num_thread
Expand Down Expand Up @@ -263,9 +263,11 @@ namespace hpx { namespace threads
};

///////////////////////////////////////////////////////////////////////////
inline hwloc_topology& create_topology()
inline hwloc_topology_info& create_topology()
{
util::static_<hwloc_topology, hwloc_topology::hwloc_topology_tag> topo;
util::static_<
hwloc_topology_info, hwloc_topology_info::hwloc_topology_tag
> topo;
return topo.get();
}
}}
Expand Down
2 changes: 1 addition & 1 deletion hpx/runtime/threads/policies/topology.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define HPX_THREADS_POLICIES_TOPOLGY_NOV_25_2012_1036AM

#if defined(HPX_HAVE_HWLOC)
# include <hpx/runtime/threads/policies/hwloc_topology.hpp>
# include <hpx/runtime/threads/policies/hwloc_topology_info.hpp>
#else
# include <hpx/runtime/threads/policies/noop_topology.hpp>
#endif
Expand Down

0 comments on commit 6e92149

Please sign in to comment.