portable_gemm_tuning.h#
-
namespace onnx_light
Alias that makes onnx-light headers compatible with code that references
ONNX_LIGHT_NAMESPACE(the macro used in the standard onnx package).Set to
ONNX_LIGHT_NAMESPACEso both names resolve to the same namespace.Symbol-visibility attribute for the public onnx-light C++ API.
Maps the upstream compatibility macro to onnx-light’s explicit proto ABI annotation. This keeps declarations from vendored ONNX headers visible when
lib_onnx_protouses hidden visibility by default.Namespace alias so that ONNX C++ code (and consumers such as onnxruntime) that refers to the literal
onnxnamespace — rather than theONNX_NAMESPACEmacro — resolves to the onnx-light namespace. The standard onnx package lives innamespace onnx; onnx-light usesonnx_light(via ONNX_LIGHT_NAMESPACE), so this alias keeps onnx-light a true drop-in. It is only introduced when the onnx-light namespace differs fromonnx.-
namespace onnx_kernels
-
namespace tuning#
Functions
-
void RegisterGemmTuningSchemas(std::span<const int32_t> supported_element_types, uint32_t tuning_abi = 1)#
Registers one portable Gemm tuning schema for every supported element type.
-
void ConfigureGemmTuning(const core::runtime::KernelTuningParameters ¶meters, GemmTuning &tuning, uint32_t tuning_abi = 1)#
Validates and copies resolved Gemm parameters into a typed configuration.
Variables
-
constexpr const char *kGemmTileM = "algorithm.tile_m"#
-
constexpr const char *kGemmTileN = "algorithm.tile_n"#
-
constexpr const char *kGemmTileK = "algorithm.tile_k"#
-
constexpr const char *kGemmPackBMinimumElements = "algorithm.pack_b_minimum_elements"#
-
constexpr const char *kGemmSkinnyMLimit = "algorithm.skinny_m_limit"#
-
constexpr const char *kGemmParallelFmasPerWorkUnit = "parallel.fmas_per_work_unit"#
-
constexpr const char *kGemmParallelMinimumTasks = "parallel.minimum_tasks"#
-
constexpr const char *kGemmConversionParallelMinimumElements = "conversion.parallel_minimum_elements"#
-
struct GemmTuning#
- #include <portable_gemm_tuning.h>
Stores the portable Gemm configuration copied into one kernel instance.
-
void RegisterGemmTuningSchemas(std::span<const int32_t> supported_element_types, uint32_t tuning_abi = 1)#
-
namespace tuning#
-
namespace onnx_kernels