feat: windows support (#216)

Preliminary support for Windows with remaining TODOs
This commit is contained in:
Jalin Wang
2026-03-30 20:47:34 +08:00
committed by GitHub
parent cef9fbf2ab
commit 8182cfff93
150 changed files with 2115 additions and 979 deletions
+4 -2
View File
@@ -891,8 +891,10 @@ void KmeansCluster::update_features_thread(size_t column,
for (size_t i = column, j = 0; i < shard_cluster_features_.size();
i += cluster_count) {
const std::vector<const void *> &it = shard_cluster_features_[i];
std::memcpy(&cluster_features[j], it.data(), it.size() * sizeof(void *));
j += it.size();
if (!it.empty()) {
std::memcpy(&cluster_features[j], it.data(), it.size() * sizeof(void *));
j += it.size();
}
}
}
@@ -327,8 +327,10 @@ void OptKmeansAlgorithm::update_features_thread(
for (size_t i = column, j = 0; i < shard_cluster_features_.size();
i += cluster_count) {
const std::vector<const void *> &it = shard_cluster_features_[i];
std::memcpy(&cluster_features[j], it.data(), it.size() * sizeof(void *));
j += it.size();
if (!it.empty()) {
std::memcpy(&cluster_features[j], it.data(), it.size() * sizeof(void *));
j += it.size();
}
}
}