generate: say which expert kernels an AVX2-only CPU gets
The notice printed 'the expert kernels run on AVX2' whether or not the AVX2 i-quant row kernels were used, and with STRATA_NO_IQ256 set they are not: the run is on ggml's vec_dot. Name the kernel, and name the switch that changed it.
This commit is contained in:
1 parent
0015035642
commit
d7a66bd33e
1 file changed
+3
-1
@@ -1074,7 +1074,9 @@ int main(int argc, char** argv) {
|
||||
// the canonical Q2_0 pack's CPU kernels are AVX-512 only; a native pack runs on AVX2 CPUs as well
|
||||
if (!native_pack) strata::kernels::cpu::cpu_require_expert_support();
|
||||
else if (!strata::kernels::cpu::cpu_avx512_ok())
|
||||
std::fprintf(stderr, "strata generate: this CPU has no AVX-512: the expert kernels run on AVX2\n");
|
||||
std::fprintf(stderr, "strata generate: this CPU has no AVX-512: the expert kernels run on %s "
|
||||
"(multi-token for the i-quant gate/up rows)\n",
|
||||
std::getenv("STRATA_NO_IQ256") == nullptr ? "AVX-2" : "ggml-cpu vec_dot (STRATA_NO_IQ256 set)");
|
||||
strata::core::NativeEmbed native_embed;
|
||||
if (native_pack) {
|
||||
if (o.native_preset.empty() || o.spec < 2 || o.keep_canonical ||
|
||||
|
||||
Reference in new issue
Block a user