Skip to content

[SVS] Refactor SVS element size calculations and block size handling#980

Open
rfsaliev wants to merge 4 commits into
mainfrom
rfsaliev/svs-blocksize-elements
Open

[SVS] Refactor SVS element size calculations and block size handling#980
rfsaliev wants to merge 4 commits into
mainfrom
rfsaliev/svs-blocksize-elements

Conversation

@rfsaliev

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

This pull request refactors and improves the way element sizes and block sizes are calculated and used in the SVS storage traits, enhancing clarity and modularity in the code. The changes introduce clearer separation between primary, residual, and secondary element sizes, update the block size calculation to use a new structure, and simplify related test logic.

Which issues this PR fixes

This PR fixes index size estimation issues for SVSIndex by using new blocksize_elements parameter introduced in intel/ScalableVectorSearch#344.

TODO:

  • Update SVS shared library binary URLs

Main objects this PR modified

  1. SVSIndex
  2. SVS tests

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@rfsaliev rfsaliev requested a review from meiravgri June 17, 2026 09:55
@jit-ci

jit-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

Comment thread cmake/svs.cmake

cmake_dependent_option(SVS_SHARED_LIB "Use SVS pre-compiled shared library" ON "USE_SVS AND GLIBC_FOUND AND SVS_LVQ_SUPPORTED" OFF)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if(GLIBC_VERSION VERSION_GREATER_EQUAL "2.31" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "21.0")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if(GLIBCXX_VERSION VERSION_GREATER_EQUAL "11")
set(SVS_URL "https://github.com/intel/ScalableVectorSearch/releases/download/nightly/svs-shared-library-reduced-clang21-gcc11-2026-06-17-1412.tar.gz" CACHE STRING "SVS URL")

@rfsaliev rfsaliev marked this pull request as ready for review June 18, 2026 11:55
@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.10%. Comparing base (45daaf3) to head (92c2189).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #980   +/-   ##
=======================================
  Coverage   97.09%   97.10%           
=======================================
  Files         141      141           
  Lines        8164     8179   +15     
=======================================
+ Hits         7927     7942   +15     
  Misses        237      237           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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