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

Sketch of Python neighbor table #1719

Closed
wants to merge 3 commits into from

Conversation

havogt
Copy link
Contributor

@havogt havogt commented Jul 13, 2022

Not sure if it makes sense to add it to this repo or if we should keep it on the GT4Py side...

@@ -170,5 +170,6 @@ namespace gridtools::fn {
} // namespace unstructured_impl_

using unstructured_impl_::connectivity;
using unstructured_impl_::make_backend;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO try undo, probably not needed after I fixed my GT4Py code

Comment on lines +26 to +28
// The module exports several instantiations of the generic `copy` to python.
// The differences between exported functions are in the way how parameters model the SID concept.
// Note that the generic algorithm stays the same.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
// The module exports several instantiations of the generic `copy` to python.
// The differences between exported functions are in the way how parameters model the SID concept.
// Note that the generic algorithm stays the same.

Comment on lines +11 to +17
print(tbl.shape)
print(testee.get_neighbor_0(tbl, 0))
print(testee.get_neighbor_1(tbl, 0))
print(testee.get_neighbor_2(tbl, 0))
print(testee.get_neighbor_0(tbl, 1))
print(testee.get_neighbor_1(tbl, 1))
print(testee.get_neighbor_2(tbl, 1))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

proper test

@@ -26,7 +26,13 @@ if(NOT pybind11_POPULATED)
endif()

pybind11_add_module(py_implementation implementation.cpp)
target_compile_options(py_implementation PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-std=c++17>)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

why do I need this?

@havogt
Copy link
Contributor Author

havogt commented Sep 22, 2022

Closing in favor of #1730

@havogt havogt closed this Sep 22, 2022
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.

1 participant