-
Notifications
You must be signed in to change notification settings - Fork 33
[ReactantExtra] IFRT bindings (round 4) #718
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
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
@wsmoses i don't think we can avoid virtual destructors: while we create |
|
That's okay we should just have a rcreference ifrt::array for all the the ifrt data |
|
@giordano this is ready to be included in the JLL |
|
Is it expected this PR is only deleting code in API.cpp? |
nope, this PR removes old, unused (and probably broken) IFRT code in API.cpp and introduces new, simpler and tested code for IFRT. only reviewing the new code is ok |
|
Ah, ok, I was looking at the negative diff figure 😅 |
| #include "jaxlib/mosaic/dialect/tpu/tpu_dialect.h" | ||
| #include "triton/Dialect/Triton/IR/Dialect.h" | ||
|
|
||
| #include "llvm/Support/ExtensibleRTTI.h" |
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.
remove this header?
deps/ReactantExtra/API.cpp
Outdated
| } | ||
| #pragma endregion | ||
| template<typename T> | ||
| struct Holded { |
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.
minor english nit, Holded -> HeldValue
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.
right 🤦
cc @wsmoses
works except for
ifrt_CopyArrayToHostBuffer. it crashes withIllegal instructionwhen called from Julia, but works when used in the pjrt-ifrt-test/demo-ifrt.cppmost probably i'm doing sth wrong