-
Notifications
You must be signed in to change notification settings - Fork 21
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
Conversation
@@ -170,5 +170,6 @@ namespace gridtools::fn { | |||
} // namespace unstructured_impl_ | |||
|
|||
using unstructured_impl_::connectivity; | |||
using unstructured_impl_::make_backend; |
There was a problem hiding this comment.
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
// 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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. |
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)) |
There was a problem hiding this comment.
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>) |
There was a problem hiding this comment.
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?
Closing in favor of #1730 |
Not sure if it makes sense to add it to this repo or if we should keep it on the GT4Py side...