An independently developed microkernel operating system has open-sourced three GPU driver implementations and a CUDA-compatible computing framework, demonstrating LLM inference across NVIDIA and Qualcomm GPUs, with performance exceeding TensorRT in several reported benchmarks.
Edge AI computing has a fundamental problem today: software locks hardware into specific ecosystems.
NVIDIA has built a powerful computing stack around CUDA and TensorRT, but much of that stack remains proprietary. Inference code and model deployment pipelines are heavily dependent on NVIDIA GPUs. Moving to processors from Qualcomm, Broadcom, or other vendors often means rewriting existing CUDA implementations or accepting significantly lower inference performance.
Many capable processors cannot fully realize their computing potential because they lack a mature software stack. Device manufacturers often select chips based on software compatibility rather than actual product requirements. Once a vendor is selected, subsequent hardware upgrades, software development, and private deployments become constrained by that vendor's ecosystem.
EwokOS approaches this problem from the operating system level.
EwokOS is an independently developed microkernel operating system written from scratch, rather than a derivative of an existing OS. It is also one of the microkernel projects on GitHub with a particularly broad range of supported hardware platforms.
The project has open-sourced three GPU driver implementations alongside KUDA, its CUDA-compatible computing framework. The same CUDA-style source code and the same GGUF model file can run on both NVIDIA's GA10B and Qualcomm's Adreno 690, a GPU that does not natively support CUDA, without modifying application source code or converting model formats.
The GPU drivers and KUDA framework are not limited to EwokOS itself. Their implementations are available as references for developers building cross-GPU computing capabilities on other operating systems, including Linux and BSD.
The project represents eight years of development, nearly 8,000 commits, and approximately 600,000 lines of independently developed code, excluding third-party libraries.
All of it is open source.
GitHub: https://github.com/MisaZhu/ewokos
Benchmarks: Comparing Three Inference Runtimes on the Same Hardware
The project's benchmarks were conducted on the same Jetson Orin Nano Super, switching between EwokOS and Linux in a dual-boot configuration.
The comparison includes llama.cpp with its CUDA backend and TensorRT Edge-LLM 0.12.0. All models use 4-bit quantization, with decoding throughput measured in tokens per second.
| Model / Workload | EwokOS KUDA | llama.cpp | TensorRT |
|---|---|---|---|
| Llama-3.2-1B — Prose | 100.52 | 65.66 | 67.92 |
| Llama-3.2-1B — Repetition | 101.21 | 66.03 | 68.73 |
| Llama-3.2-1B — Long conversation | 98.51 | 65.22 | 68.37 |
| Qwen3-4B — Prose | 29.85 | 20.10 | 26.50 |
| Qwen3-4B — Repetition | 29.86 | 20.10 | 26.47 |
| Qwen3-4B — Long conversation | 28.92 | 19.79 | 26.30 |
| Gemma4-E4B — Prose | 21.95 | — | — |
| Gemma4-E4B — Repetition | 20.64 | — | — |
In these reported benchmarks, KUDA achieves 1.46–1.53× the decoding throughput of llama.cpp and 1.10–1.48× that of TensorRT Edge-LLM at the same nominal quantization level.
The Gemma4-E4B results are particularly interesting because the difference is not simply about performance. It is about whether the model can run at all.
The 4.6 GB, 4-bit model reportedly failed to load using llama.cpp under Linux on the same 8 GB Orin Nano. The model weights, together with the computing buffers required for inference, exceeded the available system memory.
EwokOS successfully loaded the same GGUF file, achieving 21.95 tokens per second for prose generation and 20.64 tokens per second for repetition. The repetition output matched the reference text exactly, according to the project. The same model achieved 14.29 tokens per second on the Adreno 690 platform.
The difference comes largely from the underlying system architecture.
In the reported Linux configuration, approximately 1.5 GB of memory is occupied by resident system components, in addition to the overhead introduced by the CUDA runtime and memory allocator.
EwokOS consumes approximately 330 MB of resident memory after startup. Its computing stack takes advantage of the unified memory architecture, keeping a single copy of model weights in physical memory shared between the CPU and GPU. The GPU can access these weights directly without unnecessary memory copies or the overhead of maintaining a conventional CUDA context.
The reported device-side memory consumption is 4.64 GiB.
This memory architecture provides three practical benefits:
- Model capacity is primarily limited by available system memory rather than a separate dedicated GPU memory allocation.
- Model loading avoids unnecessary copies between CPU and GPU memory domains.
- CPU-side preprocessing, such as tokenization and weight rearrangement, can share buffers with GPU inference, reducing intermediate allocations.
Unified memory is not exclusive to EwokOS. The underlying hardware already supports shared physical memory. The advantage here comes from how the operating system and computing runtime utilize that capability.
With the same 8 GB of physical memory, EwokOS can accommodate larger models in the reported configuration. For edge AI, a smaller system footprint, efficient shared memory management, and a hardware-specific driver stack are particularly valuable.
The performance difference also comes from the computing pipeline. On GA10B, KUDA uses Tensor Core integer computing paths to process 4-bit weights, while the mixed-precision GGUF layout reduces the amount of data transferred per generated token.
Within these benchmarks, the open-source computing stack does not fall behind established commercial inference runtimes.
These results should be interpreted within their specific test configurations rather than as a universal performance comparison between KUDA and CUDA. Nevertheless, they demonstrate an interesting alternative approach to optimizing inference on resource-constrained hardware.
The Cloud Makes AI Affordable, the Edge Makes It Practical
An industrial camera can generate hundreds of megabytes of raw data every second. Across vehicle fleets, production lines, and retail environments, upstream bandwidth and transmission costs quickly become significant constraints.
Applications such as obstacle avoidance, robotic manipulation, and voice activation also require millisecond-level response times. Cloud round trips may introduce latency and variability that make them unsuitable for these workloads.
Data governance is another important consideration.
Health information, biometric data, vehicle footage, and industrial process parameters may be subject to legal or commercial restrictions on transmission. Edge inference allows devices to process sensitive information locally and transmit results rather than raw data.
The cost structure is different as well.
Cloud inference introduces recurring expenses based on tokens, processing time, or service usage. As the number of devices increases, these costs accumulate. Edge inference shifts much of that expenditure toward upfront hardware investment, local energy consumption, and maintenance, with substantially lower marginal cloud inference costs.
Computing hardware is already becoming increasingly heterogeneous.
Mobile SoCs, wearable processors, automotive controllers, and robotic platforms contain various combinations of GPUs, NPUs, and DSPs. In many cases, what is missing is not computing power, but a software stack capable of utilizing it.
Quantization, distillation, and smaller language models are making it possible to run models in the 1B–8B parameter range within a few gigabytes of memory. Multimodal wearables, on-device voice processing, and computer vision systems no longer need to depend entirely on cloud infrastructure.
A significant part of AI's growth over the next decade may therefore come from billions of edge devices rather than exclusively from larger data centers.
For these devices, the important question is not just peak computing performance. It is whether the same software stack can be reused across different processors and device categories.
For Developers: Write Once, Run Across GPUs
KUDA provides source-level compatibility with the CUDA Driver API.
For supported workloads, developers can maintain a single CUDA-style computing implementation rather than writing separate application logic for NVIDIA and Qualcomm GPUs. Models can be loaded directly from standard GGUF files without additional quantization or format conversion. Operations without an available GPU implementation can fall back to CPU execution.
This does not mean that NVIDIA's proprietary CUDA implementation has been open-sourced, nor does it imply complete compatibility with every CUDA application or library.
Instead, KUDA provides an independently developed, open-source implementation of CUDA-compatible computing capabilities.
From an engineering perspective, what is particularly interesting about EwokOS is that the entire stack is available for inspection and modification.
Its public repository includes:
- Bootloaders and the microkernel.
- Board Support Packages (BSPs) for supported hardware.
- GPU, storage, networking, USB, Bluetooth, and display drivers.
- Graphics and computing frameworks, including GLES2/EGL, Vulkan, OpenCL, and KUDA.
- A native C library, libewoksys.
- An X-style desktop environment.
The project's own code is licensed under Apache 2.0. Third-party libraries, including zlib, FreeType, Mesa frontend components, newlib, openlibm, and GPLv3-licensed wolfSSL, are distributed under their respective licenses.
When developers encounter a bug or need to optimize a computing operator, they can investigate the implementation all the way down to the driver and operating system layers.
The KUDA compatibility framework is also available independently of EwokOS. Developers working on other operating systems can use its implementation as a reference when building their own cross-GPU CUDA compatibility layers.
The project attempts to reduce hardware enablement costs through its BSP and driver architecture. Once the necessary platform-specific implementations are available, new hardware can reuse existing graphics and computing APIs, as well as higher-level AI application code.
GPU-specific drivers and optimized computing kernels still require dedicated engineering work, but the reusable infrastructure reduces the amount of work that needs to be repeated for each platform.
EwokOS also includes SSH and development toolchains, allowing developers to debug and iterate on computing workloads directly on supported edge devices.
Beyond AI inference, the repository contains browsers, text and PDF readers, Macintosh emulators such as Macemu and Mini vMac, NES games, a Git client, ImGui, SDL2, camera applications, video playback, and LLM inference examples.
Two particularly substantial components are ewebview, an independently developed browser engine, and mario_js, a JavaScript runtime. Both are separate Apache 2.0-licensed open-source projects from the same author.
What makes the project interesting is not simply that a microkernel operating system can run these applications. It is that an independently developed software stack extending from boot code to a browser engine is still achievable today.
Why Microkernels Are Particularly Suitable for Edge AI
Linux uses a monolithic kernel architecture, with many drivers, filesystem implementations, and networking components executing in kernel space.
A sufficiently serious GPU driver failure can compromise the entire operating system. For industrial equipment, automotive systems, and other continuously operating edge devices, such failures can be particularly disruptive.
A microkernel takes a different approach.
The kernel retains a small set of responsibilities, typically including memory management, scheduling, interrupts, and inter-process communication. Drivers, networking, filesystems, and graphics components can run as isolated user-space services.
EwokOS implements this architecture independently, including its underlying IPC mechanisms and memory model.
For edge AI, this approach offers several practical advantages.
Fault isolation. A failure in a GPU driver or computing service does not necessarily bring down the entire operating system. Under suitable conditions, the affected service can be restarted independently and inference can resume.
Hardware coverage. EwokOS supports ARM32, AArch64, RISC-V 64, and x86, spanning relatively low-end development boards, handheld devices, and more capable AI platforms such as the Radxa Dragon Q8B and Jetson Orin Nano. System components can be selected according to the requirements of each platform.
Security and auditability. A relatively small, independently developed kernel is easier to inspect and audit. Combined with W^X memory protection and a journaled filesystem designed to improve resilience against power loss, this architecture may be useful for industrial, healthcare, and other security-sensitive deployments.
Automated development and validation. Computing operators and system components can first be tested in QEMU and then validated on physical hardware. According to the project, AI coding agents have already participated in implementing and iteratively validating GPU drivers and computing kernels.
The EwokOS README goes further in its discussion of why microkernels may be particularly suitable for the AI era.
Both AI workloads and AI-assisted software development benefit from systems that are relatively small, composable, and capable of tolerating rapid changes. A microkernel architecture provides a useful foundation for these characteristics.
The project identifies five underlying reasons.
1. Composable System Configurations
The kernel remains small, while filesystems, display services, networking, and drivers run as user-space components that can be assembled according to the requirements of the target device.
Each hardware platform has an independent root filesystem recipe, with build targets such as make basic, network, gui, and x.
The same architecture can support a headless sensor node or a complete GPU-enabled desktop environment by adding or removing system components rather than redesigning the kernel.
An AI coding agent or a product engineering team could therefore generate new device configurations by recombining existing services.
2. Drivers and Services Can Be Replaced at Runtime
Drivers are ordinary processes registered with a central service registry named core.
When an existing service exits, a new process can register under the same service identifier. Clients can rediscover the replacement through that identifier.
Under suitable conditions, upgrading a driver becomes a matter of replacing its binary and restarting its service, rather than rebuilding the kernel or rebooting the entire device.
This is particularly relevant to AI-generated systems code. A defective user-space driver can potentially be isolated and replaced without bringing down the entire operating system.
Actual recovery behavior still depends on hardware state, resource cleanup, and client-side recovery mechanisms.
3. Application Modules Can Be Upgraded Independently
On AArch64, EwokOS supports dynamic plugin loading through dlopen, with kernel-enforced W^X memory protection.
Applications can load new ET_DYN modules from /lib through a stable host ABI.
Introducing a new capability can therefore involve deploying a shared library into the root filesystem without relinking the entire application or reflashing device firmware.
This provides a useful mechanism for incremental software updates on embedded devices.
4. AI Workloads Are Already Running on Physical Hardware
KUDA supports quantized LLM inference on Qualcomm's Adreno 690. The project also includes a native testing stack for the Hexagon NPU.
Its graphics and computing frameworks retain CPU backend implementations, providing fallback execution paths when hardware acceleration is unavailable.
The objective is to preserve common application logic across supported targets, with hardware-specific backends responsible for accelerating execution.
5. A Codebase Small Enough for AI Agents to Understand
The kernel is small enough to be studied end to end. The native runtime does not depend on a host libc, and the operating system does not inherit the dependency chain of a conventional Linux distribution.
Its QEMU workflow provides a complete build, boot, and testing loop that can run on a laptop.
This makes it possible for an AI coding agent to understand a substantial portion of the system, modify an individual driver or service, and validate its changes within a relatively short development cycle.
These five characteristics raise an interesting engineering question: why reconsider the operating system itself rather than simply continue adding drivers to Linux?
As AI-generated code becomes more common, hardware evolves rapidly, and device categories become increasingly diverse, the value of an operating system may depend not only on how many features it provides, but also on how easily its components can be understood, replaced, tested, and recomposed.
Industry Implications: Regaining Control Over Hardware and Software Choices
Hardware Selection Can Return to Product Requirements
Many processors have capable hardware specifications but lack sufficiently mature software ecosystems, making them difficult to adopt in commercial products.
An open, cross-GPU computing stack could allow device manufacturers to select SoCs according to power consumption, cost, thermal constraints, and application requirements rather than compatibility with a particular proprietary computing ecosystem.
This provides greater flexibility in hardware selection and supply chain management. GPUs outside the native CUDA ecosystem, such as Qualcomm's Adreno series, could also become more practical targets for mainstream AI workloads.
Private Deployments Become More Controllable
Industrial, healthcare, and automotive applications often require greater control over their local inference infrastructure.
A fully inspectable software stack allows organizations to investigate implementation details, customize components, and address security risks independently of a third-party vendor's release schedule or licensing policies.
Open source does not automatically guarantee security or regulatory compliance, but it provides the ability to conduct independent verification and maintain the software over time.
Hardware Enablement Becomes a Shared Investment
Supporting a new hardware platform does not necessarily need to involve rebuilding every layer of the software stack.
Reusable BSP contracts, driver interfaces, and computing abstractions allow hardware-specific implementations to contribute to a shared ecosystem.
Existing computing operators, inference engines, and model formats can be reused across supported platforms, reducing duplicated engineering work.
Development Cycles Could Become Shorter
Traditional proprietary SDK development depends on the engineering resources and priorities of individual vendors.
An independently maintainable architecture provides another development model. AI coding agents, automated validation, and community contributions could accelerate the implementation of new computing operators and hardware backends.
The open GPU drivers and KUDA compatibility framework can also serve as references for other heterogeneous computing projects.
The Economics of Vendor Lock-In Could Change
Part of the commercial value of a proprietary computing ecosystem comes from the limited availability of alternatives.
If an open-source stack can achieve comparable or better performance on the same hardware, device manufacturers gain another option.
This does not mean that proprietary runtimes immediately lose their technical advantages. NVIDIA continues to provide mature computing libraries, compiler infrastructure, debugging tools, extensive hardware support, and production experience.
However, the availability of a practical alternative changes the relationship between hardware vendors and their customers.
Manufacturers gain greater negotiating power when they are no longer entirely dependent on a single software ecosystem.
Similar transitions have occurred before, when Linux challenged proprietary Unix systems and open-source compilers reduced dependence on commercial toolchains.
These transitions took years. An open edge AI computing stack will likewise need to demonstrate reliability, operator coverage, developer tooling, and long-term maintainability.
But the availability of choice can influence the industry before an alternative achieves widespread adoption.
The Ecosystem: Decoupling Five Layers of Edge Computing
The ecosystem challenge in edge AI is not simply whether an algorithm can run on a particular processor.
It is whether five layers can evolve independently while continuing to work together:
- Semiconductor hardware.
- Device drivers.
- Computing runtimes.
- AI frameworks.
- Applications.
An open computing stack makes it possible for more of these layers to become independently evolving, verifiable, and reusable software assets.
Software Development Can Begin Before Hardware Is Ready
Developing a usable AI software stack for a new edge SoC is often a lengthy process.
Driver enablement, framework integration, memory management, and computing operator optimization can each require substantial engineering work.
A microkernel architecture, standardized BSP contracts, and reusable computing abstractions provide clearer interfaces between these responsibilities.
With appropriate hardware simulation and emulation, parts of the software stack can be developed during pre-silicon validation rather than waiting until physical hardware becomes available.
Software and hardware development can proceed more closely in parallel.
Repeated Porting Becomes Incremental Optimization
Industrial controllers, automotive platforms, medical devices, robots, and handheld systems all use different combinations of processors and peripherals.
A configurable operating system combined with reusable driver and computing interfaces can reduce the amount of software that needs to be ported for every new hardware platform.
Engineering resources can instead be directed toward hardware-specific optimization, computing operators, model compression, and application development.
Smaller Semiconductor Companies Gain an Entry Point
Building a computing ecosystem comparable to CUDA requires substantial engineering investment accumulated over many years.
Most smaller semiconductor companies cannot independently reproduce that ecosystem.
An open-source computing stack could lower this barrier by allowing these companies to reuse existing software components and focus their engineering resources on hardware enablement and optimization.
This could make it easier for a wider range of processors to support mainstream AI models.
Performance Comparisons Become More Reproducible
Edge AI benchmarking is frequently complicated by differences in quantization formats, computing backends, runtime configurations, and test workloads.
Performance figures published by different hardware vendors are often difficult to compare directly.
When GPU drivers, computing runtimes, and inference implementations are open source, developers can inspect the underlying implementation and reproduce the benchmark configurations.
With equivalent test conditions, standardized workloads, and accuracy verification, different hardware platforms can be evaluated more transparently.
Heterogeneous Computing Gains a More Consistent Abstraction
GPUs, NPUs, and DSPs serve different computing roles.
Integrating a new accelerator often requires introducing another vendor-specific programming interface and maintaining additional application logic.
This encourages device manufacturers to select hardware with established software ecosystems, even when alternative processors might be better suited to their products.
KUDA provides a shared CUDA-style computing abstraction. Combined with isolated user-space drivers and hardware-specific backends, it offers a possible approach to integrating heterogeneous computing capabilities through reusable interfaces.
The existing implementations do not yet provide universal compatibility across all GPU, NPU, and DSP architectures. However, the architectural direction is worth exploring.
There is also an important boundary to consider.
Applications requiring hard real-time guarantees, such as high-dynamic robotic joint control, still need deterministic scheduling policies, dedicated real-time operating systems, or specialized controllers.
A microkernel combined with user-space services does not automatically provide hard real-time guarantees.
The problem this computing stack addresses is software portability, hardware abstraction, and system maintainability, rather than replacing dedicated real-time control layers.
Conclusion
CUDA has made an enormous contribution to the development of modern AI. At the same time, its ecosystem has created a strong dependency between computing software and NVIDIA hardware.
EwokOS and KUDA provide an interesting open-source alternative.
An independently developed microkernel offers a lightweight and modular foundation for edge computing. Open GPU drivers and a CUDA-compatible framework make it possible to explore cross-GPU computing without depending entirely on proprietary implementations.
The reported benchmarks also demonstrate that an open-source computing stack does not necessarily require a compromise in inference performance.
For developers, this could reduce duplicated hardware-specific development.
For the broader ecosystem, it could allow hardware, drivers, computing runtimes, frameworks, and applications to evolve more independently.
For device manufacturers, it could provide greater flexibility in processor selection, private deployment, and long-term software maintenance.
There is still substantial engineering work ahead, particularly in compatibility coverage, production reliability, developer tooling, hardware enablement, and independent performance validation.
What I find particularly interesting about EwokOS is not simply that someone has built another operating system or another CUDA compatibility layer.
It is that a relatively small, independently developed project has demonstrated the possibility of addressing hardware portability, inference performance, and operating system architecture together.
Setting CUDA free does not mean open-sourcing NVIDIA's existing implementation or eliminating CUDA itself. It means making CUDA-compatible computing accessible through an open software stack, independent of a single hardware vendor.
For edge AI, where hardware diversity is a fundamental requirement, that is a direction worth paying attention to.
Project repository: https://github.com/MisaZhu/ewokos
The benchmark results and implementation details discussed in this article are based on the project's published information. Independent reproduction and broader workload coverage would be useful for further evaluation.
Top comments (0)