okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

Niko1221Merge f-own-3v (aa2a3f956) into f-own-int: --tower auto keeps mtmd on Pascal and on scalar-only CPUs, per-ISA CPU files without standard-library code, the SYCL tower76c1a1744

main
732 B15 linesraw
1// tools/vision/own/cpu_kernels.h - the instruction-set specific kernels of the CPU tower (VitCpu), one table per ISA tier.
2//
3// Every tier lives in its own translation unit with its own compile flags (cpu_kernels_scalar.cpp, _avx2.cpp, _avx512.cpp, all from cpu_kernels_impl.h), so
4// the portable build runs on any CPU and the dispatcher (cpu_ops()) picks the best tier the CPU has (quant::best_isa(), STRATA_FORCE_ISA caps it).
5// The table type and the getters are in cpu_tier.h, which is all the wider-ISA tier files may include (see there); this header is for baseline code.
6#pragma once
7
8#include "cpu_caps.h"
9#include "cpu_tier.h"
10
11namespace strata_vit {
12
13const CpuOps& cpu_ops(quant::Isa isa);
14
15}  // namespace strata_vit