Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

LibreCuda

> 编程语言
Open source

LibreCUDA LibreCUDA is a project aimed at replacing the CUDA driver API to enable launching CUDA code on Nvidia GPUs without relying on the…

1.1K stars0 likes0 views
WebsiteGitHub

About

LibreCUDA LibreCUDA is a project aimed at replacing the CUDA driver API to enable launching CUDA code on Nvidia GPUs without relying on the…

LibreCUDA

LibreCUDA is a project aimed at replacing the CUDA driver API to enable launching CUDA code on Nvidia GPUs without relying on the proprietary CUDA runtime. It achieves this by communicating directly with the hardware via ioctls, ( specifically what Nvidia's open-gpu-kernel-modules refer to as the rmapi), as well as QMD, Nvidia's MMIO command queue structure. LibreCUDA is capable of uploading CUDA ELF binaries onto the GPU and launching them via the command queue.

Current features

  • Allocate and free gpu memory & map the memory to be accessible by the CPU
  • Upload cuda kernels (CUDA ELF binaries)
  • Set dynamic shared memory for cuda functions
  • Launch CUDA kernels
  • Supports cheap async kernel launches on a single stream
  • host to device (DMA), device to device (Compute), device to host memcpy (DMA)
  • Supports cheap async memcpys on a single stream

Example

Below is an example demonstrating the usage of LibreCUDA:

…

Outputs

bash
Device count: 1
Num functions: 1
  function "write_float"
Src value: 3.1415
Dst value (pre exec): 0
Dst value (post exec): 3.1415

How to Use

The recommended way to use librecuda is to clone the LibreCUDA repository and link against the driverapi library in CMake:

bash
git clone --recurse https://github.com/mikex86/LibreCuda.git

Add the repository as a CMake directory

cmake
add_subdirectory(LibreCuda)

Link against the driver api library

cmake
target_link_libraries(YourTarget PRIVATE driverapi)

Include headers

c
#include 

Project Status

The project is in its early stages and currently implements only rudimentary CUDA functions. It is not yet ready for production use.

Contributing

Contributions are welcome! Please submit issues and pull requests to help improve LibreCUDA.

License

This project is licensed under the MIT License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言