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

Enable generation of a 2D neighbor list using ArborX #248

Merged
merged 10 commits into from
Jun 5, 2020

Conversation

dalg24
Copy link
Collaborator

@dalg24 dalg24 commented Jun 4, 2020

No description provided.

@sslattery sslattery requested a review from streeve June 5, 2020 16:52
@sslattery
Copy link
Collaborator

weird this one is dying on building HelloWorld as well but in a different way than #244. Is this related to #245?

predicates );

Kokkos::View<int *, DeviceType> counts( "counts", n_queries );
bvh.query(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so you do your own 2-pass here - do you force ArborX to do the queries in 1-pass mode so this is effectively still just a 2-pass process as you are filling your own data structure?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you must check if there is enough space allocated by the user but you never fill the native data structure so ArborX will always do 1-pass because the internal count never goes past 0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. We detect that you never called the output functor and do a single pass. Note that we are working on adding a new BVH::query() overload that does only takes the callback (no offsets and values).

assert( n < numNeighbor( crs_graph, p ) );
p -= crs_graph.shift;
return crs_graph.col_ind( crs_graph.row_ptr( p ) + n );
}
};

template <typename MemorySpace, typename Tag>
class NeighborList<Experimental::Dense<MemorySpace, Tag>>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this Dense type name

@sslattery sslattery merged commit afe021d into ECP-copa:master Jun 5, 2020
@dalg24 dalg24 deleted the experimental_2D_neighbor_list branch June 5, 2020 19:00
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

Successfully merging this pull request may close these issues.

3 participants