sycl: NativeDense::hc_q8_requested() is declared by the shared header since STRATA_HC_Q8; the port's file defines it (the anonymous helper of the same name was hidden by the member, link error)

This commit is contained in:
Niko1221 committed 2026-10-12 08:01:06 +02:00
1 parent 24d972e542
commit ee9263ee38
1 file changed
+4 -1
+4 -1
View File
@@ -30,7 +30,7 @@ bool in_range(const std::string& name) {
return l >= g_layer_lb && l < g_layer_le;
}
// S23 experiment (STRATA_HC_Q8=1): the hyper-connection projections' Q8_0 bytes for the verify read
bool hc_q8_requested() {
bool hc_q8_env() {
static const bool on = [] { const char* v = std::getenv("STRATA_HC_Q8"); return v != nullptr && v[0] == '1'; }();
return on;
}
@@ -107,6 +107,9 @@ struct Pending {
};
}
// the shared header declares the static member (b60aab1b); this port only needs the env switch
bool NativeDense::hc_q8_requested() { return hc_q8_env(); }
bool NativeDense::served_names(const std::vector<std::string>& shards, bool include_ple_key,
std::set<std::string>& out, std::string& err) {
try {