Repository navigation
refactor(ISA): generate compute kernels from a single input file - #395
Merged
Merged
Conversation
Member
|
Please rebase |
ethanglaser
reviewed
Nov 12, 2026
| // Important: If a project uses SVS and calls compute kernels on datatype | ||
| // combinations not in this list, they will be compiled with their project | ||
| // and won't support multi-arch dispatching | ||
| #define SVS_FOR_EACH_TYPE_PAIR(M, ...) \ |
Member
There was a problem hiding this comment.
Looks like DISTANCE_{L2,IP,CS}_{EXTERN,INSTANTIATE}_TEMPLATE macros are removed outright. They're in an installed header, so any downstream user breaks.
Member
Author
There was a problem hiding this comment.
True. What do you suggest?
Member
Author
There was a problem hiding this comment.
The old templates are now kept as shims for backward compatibility. Should we add a deprecation note?
Member
There was a problem hiding this comment.
Yeah we could deprecate, looks like there is some SVS functionality for doing so. A one-line comment above them pointing to SVS_INSTANTIATE_*, plus a note for next release to make sure we don't forget in https://github.com/intel/ScalableVectorSearch/releases/tag/untagged-c4c7c5079b9c2b168228.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ahuber21
force-pushed
the
dev/improve-isa-dispatching
branch
from
November 17, 2026 10:07
64cd9b8 to
24783ff
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paths built from PROJECT_SOURCE_DIR point at the parent project when this file is included from a repo that vendors SVS as a submodule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR 395 made public headers depend on a configure-time header, breaking header-only consumers. The committed default restores that; configure fails if it drifts from the default declaration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmake_path(ABSOLUTE_PATH) rewrites an existing variable, and SVS_DISPATCH_SOURCE_ROOT was never set, so the root came out empty and configure failed to find the ISA translation units. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ethanglaser
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the first PR in a series that will re-introduce what was there in #372.
I'm cherry-picking the changes and try to limit the scope of each PR.
This PR only removes the explicit dim macros in the source files and lets cmake generate the necessary bits.