-
Notifications
You must be signed in to change notification settings - Fork 139
Add batch to VirtualChunked ReadParameters #277
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
Add batch to VirtualChunked ReadParameters #277
Conversation
…and engage the Batch before submission to the executor
0553ba4 to
52c0f62
Compare
…d::optional<Batch>
|
Re: the failing github actions in my fork: https://github.com/sjperkins/tensorstore/actions It looks as if the linux arm64 run is failing to obtain an arm64 runner.
arm-ubuntu-arm-22.04-8core may be only available on paid plans. |
|
Guess I could change the the runner type to |
|
There need to be additional tests in the C++ code for virtual_chunked/virtual_chunked_test.cc I think that a few of the |
Agreed on adding C++ tests. I don't know that I see anywhere that should use Batch::View --- since Batch::View behaves like string_view we can only use it where we are sure the batch will remain valid long enough. |
I was thinking that |
This makes sense: I've implemented this change. After some thought I couldn't think of other cases, but I may have missed something. |
|
I've added 3 C++ test cases testing passing of the batch to
|
| #include "tensorstore/transaction.h" | ||
| #include "tensorstore/util/executor.h" | ||
| #include "tensorstore/util/option.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.
There are some pre-existing missing includes that would be nice to add.
#include
#include "absl/time/time.h"
#include "tensorstore/driver/driver.h"
#include "tensorstore/index.h"
#include "tensorstore/open_mode.h"
#include "tensorstore/rank.h"
#include "tensorstore/schema.h"
#include "tensorstore/strided_layout.h"
#include "tensorstore/util/future.h"
#include "tensorstore/util/result.h"
#include "tensorstore/util/status.h"
Along with the build dependencies for them.
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.
I've made those changes:
So generally I've been poor at handling IWYU, mostly because of the context switch of setting up bazel-compile-commands-extractor with clangd each time, but I think I've got a better handle on this now than in the past. The setup process has been recorded here:
Maybe I'll find time to add it to the docs at some point.
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.
Along with the build dependencies for them.
These are the bazel build deps for the virtual_chunked tensorstore_cc_library ?
Edit OK yes, I see some of those missing
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.
Added something here 98119c4
but I suspect this is not quite what you're asking for. Can you please clarify?
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.
TBH, my reverse mapping of build deps is somewhat broken right now, so I haven't worried about that; generally the bazel build cleaner tool should fix those if the includes are ~correct (within the same project), and that gets run on import.
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.
TBH, my reverse mapping of build deps is somewhat broken right now, so I haven't worried about that; generally the bazel build cleaner tool should fix those if the includes are ~correct (within the same project), and that gets run on import.
Still not understanding you I'm afraid. The bazel build cleaner seems to be an internal tool within Google?
If this works with the tensorstore build as is, can you please provide a command? i.e. python bazelisk.py run ...
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.
"Along with the build dependencies for them"
Yes, I meant in the BUILD file to add the appropriate lines to the deps = [ ... ] variable for the virtual_chunked target appropriate for each of the added include lines.
Internally we have a build cleaner tool, which may be something like bant to add them.
Also, in order to submit I import your PR into our source-of-truth tree, which to applies a reverse mapping, which right now isn't working properly and I haven't bothered to solve that issue since regenerating the deps section is handled by aforementioned tool.
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.
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.
Thanks will try work bant into my workflow in future although AFAICT tensorstore uses the older WORKSPACE style while bant uses MODULE.bazel.
|
Thanks, I have something similar using I'll take a look at the bug you've highlighted. |
|
Tested the github action build artefacts after the merge of this PR and it seems to work. Would it be possible to release a new version of tensorstore including these changes? |

Uh oh!
There was an error while loading. Please reload this page.