ML Workload Library for Vulkan®

mlworkloadlib provides a public C++ API for constructing executable ML workloads for Vulkan® and running them through a common resource-binding and execution model.

Public API

The installed public headers are included directly as needed:

#include <mlworkloadlib/workload.hpp>
#include <mlworkloadlib/context.hpp>
#include <mlworkloadlib/session.hpp>

The API exposes mlworkloadlib::Workload, mlworkloadlib::Context, mlworkloadlib::Session, mlworkloadlib::BindingSet, and mlworkloadlib::PreparedExecution. Supported workloads are VGF-backed workloads created with Workload::fromVGF(...) and standalone compute shader workloads created with Workload::fromComputeShader(...), and standalone Vulkan® data graph workloads created with Workload::fromDataGraph(...); callers provide application-owned Vulkan® objects through Context::wrap(...), or let Context::create() create a runtime-owned Vulkan® context.