From 54f55b732b48338c0782cb5e546bccf7dd0cb07a Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Wed, 15 Nov 2023 12:38:02 -0600 Subject: [PATCH] Increment IVF serialization versions. --- cpp/include/raft/neighbors/detail/ivf_flat_serialize.cuh | 4 ++-- cpp/include/raft/neighbors/detail/ivf_pq_serialize.cuh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/include/raft/neighbors/detail/ivf_flat_serialize.cuh b/cpp/include/raft/neighbors/detail/ivf_flat_serialize.cuh index c5218549ad..e6d47393fd 100644 --- a/cpp/include/raft/neighbors/detail/ivf_flat_serialize.cuh +++ b/cpp/include/raft/neighbors/detail/ivf_flat_serialize.cuh @@ -29,12 +29,12 @@ namespace raft::neighbors::ivf_flat::detail { -// Serialization version 3 +// Serialization version // No backward compatibility yet; that is, can't add additional fields without breaking // backward compatibility. // TODO(hcho3) Implement next-gen serializer for IVF that allows for expansion in a backward // compatible fashion. -constexpr int serialization_version = 4; +constexpr int serialization_version = 5; // NB: we wrap this check in a struct, so that the updated RealSize is easy to see in the error // message. diff --git a/cpp/include/raft/neighbors/detail/ivf_pq_serialize.cuh b/cpp/include/raft/neighbors/detail/ivf_pq_serialize.cuh index 0012ac18f9..34446a98e4 100644 --- a/cpp/include/raft/neighbors/detail/ivf_pq_serialize.cuh +++ b/cpp/include/raft/neighbors/detail/ivf_pq_serialize.cuh @@ -36,7 +36,7 @@ namespace raft::neighbors::ivf_pq::detail { // backward compatibility. // TODO(hcho3) Implement next-gen serializer for IVF that allows for expansion in a backward // compatible fashion. -constexpr int kSerializationVersion = 3; +constexpr int kSerializationVersion = 4; // NB: we wrap this check in a struct, so that the updated RealSize is easy to see in the error // message.