From e293e61fcf7c6760606d790def9ab18f1abc7ec6 Mon Sep 17 00:00:00 2001 From: Divye Gala Date: Thu, 28 May 2026 20:13:38 +0000 Subject: [PATCH] add visibility controls --- c/include/cuvs/neighbors/ivf_sq.h | 2 ++ cpp/include/cuvs/neighbors/ivf_sq.hpp | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/c/include/cuvs/neighbors/ivf_sq.h b/c/include/cuvs/neighbors/ivf_sq.h index a771bc0d4d..75e1550896 100644 --- a/c/include/cuvs/neighbors/ivf_sq.h +++ b/c/include/cuvs/neighbors/ivf_sq.h @@ -12,6 +12,8 @@ #include #include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/cpp/include/cuvs/neighbors/ivf_sq.hpp b/cpp/include/cuvs/neighbors/ivf_sq.hpp index 93952f9747..6ac765213c 100644 --- a/cpp/include/cuvs/neighbors/ivf_sq.hpp +++ b/cpp/include/cuvs/neighbors/ivf_sq.hpp @@ -7,6 +7,7 @@ #include "common.hpp" #include +#include #include #include #include @@ -15,7 +16,9 @@ #include #include -namespace cuvs::neighbors::ivf_sq { +namespace CUVS_EXPORT cuvs { +namespace neighbors { +namespace ivf_sq { /** * @defgroup ivf_sq_cpp_index_params IVF-SQ index build parameters @@ -86,7 +89,7 @@ static_assert(std::is_aggregate_v); */ template -struct list_spec { +struct CUVS_EXPORT list_spec { static_assert(std::is_same_v, "IVF-SQ code type CodeT must be uint8_t"); using value_type = CodeT; @@ -166,7 +169,7 @@ using list_data = ivf::list; * */ template -struct index : cuvs::neighbors::index { +struct CUVS_EXPORT index : cuvs::neighbors::index { static_assert(std::is_same_v, "IVF-SQ code type CodeT must be uint8_t for now."); using index_params_type = ivf_sq::index_params; @@ -625,4 +628,6 @@ void deserialize(raft::resources const& handle, * @} */ -} // namespace cuvs::neighbors::ivf_sq +} // namespace ivf_sq +} // namespace neighbors +} // namespace CUVS_EXPORT cuvs