strata --version; build warnings: weights.cpp index scanf formats, qsa_layer unused variables and one-line statements, ignored cudaFreeHost results

This commit is contained in:
Niko1221 committed 2026-10-07 20:47:36 +02:00
1 parent b9aa4558a4
commit b7dd070d96
3 files changed
+19 -6

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@
#include "strata/kernels/f16_bits.hpp"
#include "strata/platform/memory.hpp"
#include <cinttypes>
#include <cuda_runtime.h>
#include <chrono>
@@ -165,7 +166,7 @@ bool WeightTable::load(const std::string& pack_dir, void* arena_base, uint64_t a
// The format is written by tools/pack_index.py and is space-separated with no quoting; a name with a
// space in it would break the parse, which is why the parser REFUSES rather than taking what it got.
const int n = std::sscanf(line,
"%255s %d %d %llu %llu %llu %llu %lld %lld %d %d %d %d %d %llu %llu %llu %d %d",
"%255s %d %d %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNu64 " %" SCNd64 " %" SCNd64 " %d %d %d %d %d %" SCNu64 " %" SCNu64 " %" SCNu64 " %d %d",
name, &r.file, &kind, &r.src_off, &r.src_bytes, &r.dst_off, &r.dst_bytes,
&r.ne0, &r.ne1, &r.code_bits, &r.code_bias, &r.group_elems, &r.codebook,
&r.has_offset, &r.codes_bytes, &r.scales_bytes, &r.offset_bytes,