Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

HIP tests: main's batched indexer append and I/O pool (C-2, C-4) replace the PR's duplicates

Niko1221520883e04979
diff --git a/tests/hip/prefill_native_batch.cpp b/tests/hip/prefill_native_batch.cpp
index 3e5b51a5a..d1aa13fa5 100644
--- a/tests/hip/prefill_native_batch.cpp
+++ b/tests/hip/prefill_native_batch.cpp
@@ -94,7 +94,7 @@ bool qsa_case(cudaStream_t stream, int64_t max_cells, int64_t pos0, int64_t T, s
shapes, max_cells, 10000.0f, stream);
}
}
- strata::kernels::native_qsa_indexer_append_chunk(raw_d + pos0 * IDX, T, pos0, 0, gamma_d, EPS,
+ strata::kernels::native_qsa_indexer_append_batch(raw_d + pos0 * IDX, T, pos0, 0, gamma_d, EPS,
bb, shapes, max_cells, 10000.0f, stream);
CHECK(cudaStreamSynchronize(stream));
@@ -148,9 +148,9 @@ bool qsa_chunks_case(cudaStream_t stream, std::mt19937& rng, int64_t max_cells,
strata::kernels::native_qsa_indexer_append(raw_d + (size_t) p * IDX, pos_d, 0, gamma_d, EPS, sb,
shapes, max_cells, 10000.0f, stream);
}
- strata::kernels::native_qsa_indexer_append_chunk(raw_d, first, 0, 0, gamma_d, EPS, cb, shapes,
+ strata::kernels::native_qsa_indexer_append_batch(raw_d, first, 0, 0, gamma_d, EPS, cb, shapes,
max_cells, 10000.0f, stream);
- strata::kernels::native_qsa_indexer_append_chunk(raw_d + (size_t) first * IDX, second, first, 0,
+ strata::kernels::native_qsa_indexer_append_batch(raw_d + (size_t) first * IDX, second, first, 0,
gamma_d, EPS, cb, shapes, max_cells, 10000.0f, stream);
CHECK(cudaStreamSynchronize(stream));
const size_t tail_n = (BLOCK - 1) * IDX, pooled_n = (size_t) (max_cells / BLOCK + 1) * IDX;
diff --git a/tests/platform/direct_file_async.cpp b/tests/platform/direct_file_async.cpp
index 1e51aafa8..f046b3166 100644
--- a/tests/platform/direct_file_async.cpp
+++ b/tests/platform/direct_file_async.cpp
@@ -22,9 +22,7 @@ int main() {
{ std::ofstream f(name, std::ios::binary); std::string bytes(4096 * 16 + 17, 'x'); f.write(bytes.data(), bytes.size()); }
DirectFile f;
std::string error;
- setenv("STRATA_PLE_IO_THREADS", "0", 1);
- check(!f.open(name, error), "invalid thread count accepted");
- setenv("STRATA_PLE_IO_THREADS", "4", 1);
+ setenv("STRATA_IO_THREADS", "4", 1); // the pool's size (out-of-range values are clamped to 1..64)
check(f.open(name, error), error.c_str());
check(!f.submit(1, memory, 4096, 0, error), "unaligned request accepted");
for (unsigned i = 0; i < 17; ++i)