Skip to content
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

indices_ and to_be_indexed_ miss from graph_adaptor class #6

Open
gonidelis opened this issue Sep 21, 2022 · 0 comments
Open

indices_ and to_be_indexed_ miss from graph_adaptor class #6

gonidelis opened this issue Sep 21, 2022 · 0 comments

Comments

@gonidelis
Copy link

gonidelis commented Sep 21, 2022

I am building with

  • g++ = 11.1
  • TBB latest (> 2021.6.0)

on WSL and encountering the following error:


In file included from /home/giannis/nwgraph/NWGraph/test/graph_adaptor_eg.cpp:4:
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp: In instantiation of ‘void nw::graph::fill_undirected(edge_list_t&, Int, adjacency_t&, ExecutionPolicy&&) [with int idx = 0; edge_list_t = nw::graph::index_edge_list<unsigned int, nw::graph::unipartite_graph_base, nw::graph::directedness::directed, int>; Int = int; adjacency_t = nw::graph::graph_adaptor<std::vector<std::vector<int> > >; ExecutionPolicy = __pstl::execution::v1::parallel_unsequenced_policy]’:
/home/giannis/nwgraph/NWGraph/test/graph_adaptor_eg.cpp:19:21:   required from here
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:285:8: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘indices_’
  285 |     cs.indices_.resize(N + 1);
      |     ~~~^~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:286:8: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘indices_’
  286 |     cs.indices_[0] = 0;
      |     ~~~^~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:288:68: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘indices_’
  288 |     std::inclusive_scan(policy, degrees.begin(), degrees.end(), cs.indices_.begin() + 1);
      |                                                                 ~~~^~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:291:6: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘to_be_indexed_’
  291 |   cs.to_be_indexed_.resize(Tmp.size());
      |   ~~~^~~~~~~~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:293:88: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘to_be_indexed_’
  293 |   std::copy(policy, std::get<kdx>(el).begin(), std::get<kdx>(el).end(), std::get<0>(cs.to_be_indexed_).begin());      |                                                                                     ~~~^~~~~~~~~~~~~~
/home/giannis/nwgraph/NWGraph/include/nwgraph/build.hpp:294:88: error: ‘class nw::graph::graph_adaptor<std::vector<std::vector<int> > >’ has no member named ‘to_be_indexed_’
  294 |   std::copy(policy, std::get<idx>(el).begin(), std::get<idx>(el).end(), std::get<0>(cs.to_be_indexed_).begin() + el.size());

I applied the fixes mentioned in #1 regarding the missing test fail.

Any ideas what could I be missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant