Skip to content

ITF export: Implement index batching support#550

Open
Krzmbrzl wants to merge 36 commits into
ValeevGroup:masterfrom
Krzmbrzl:export-index-batching
Open

ITF export: Implement index batching support#550
Krzmbrzl wants to merge 36 commits into
ValeevGroup:masterfrom
Krzmbrzl:export-index-batching

Conversation

@Krzmbrzl

Copy link
Copy Markdown
Collaborator

No description provided.

Krzmbrzl added 7 commits June 12, 2026 10:27
This function is of no real use to anyone using the generator from the
outside. Hence, it shouldn't be part of its public API. Instead, it is
now an implementation detail of the individual generators.
@Krzmbrzl Krzmbrzl marked this pull request as draft June 12, 2026 16:19
@Krzmbrzl Krzmbrzl force-pushed the export-index-batching branch from 78f43e7 to ecabe24 Compare June 15, 2026 13:18
@Krzmbrzl Krzmbrzl marked this pull request as ready for review June 18, 2026 15:25
Comment thread SeQuant/core/index.hpp

SEQUANT_ASSERT(end != std::ranges::end(label));

std::basic_string_view<std::remove_cvref_t<std::ranges::range_value_t<View>>> view(&(*end), std::ranges::distance(end, std::ranges::end(label)));

@ajay-mk ajay-mk Jun 18, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Formatting issue? Line 983 is too long. Also surprised the CI didn't flag it.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's all run through the auto-formatter. So it's as formatted as it gets at least with this specific version of clang-format :D


void end_named_section(std::string_view /*name*/, const Context &) override {
m_generated += "\n\n";
if (!m_currentBatchIndices.empty()) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This logic for clearing batching indices is repeated in this file again. Maybe factor this out?


void process_operation_queue() {
void process_operation_queue(const MainContext &ctx) {
IndexSpecificTensorBlockEqualComparator cmp(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IndexSpecificTensorBlockEqualComparator is built similarly in other places also in this file. Is the comparator reusable?

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.

2 participants