#block-device #ocl #opencl #swap

bin+lib ublk-vram

A block device that exposes OCL memory to userspace via ublk

15 releases

Uses new Rust 2024

0.1.20 Oct 17, 2025
0.1.19 Oct 17, 2025
0.1.12 Sep 25, 2025

#1100 in Command line utilities

Download history 347/week @ 2025-09-03 266/week @ 2025-09-10 132/week @ 2025-09-17 774/week @ 2025-09-24 66/week @ 2025-10-01 765/week @ 2025-10-08 454/week @ 2025-10-15 10/week @ 2025-10-22

1,307 downloads per month

MIT license

33KB
781 lines

This is fork from https://github.com/theblazehen/vramblk.git, but use ublk instead of NBD. about ublk, please see https://www.kernel.org/doc/html/latest/block/ublk.html

Limitations

  • Performance is limited by PCI-Express bandwidth, OpenCL overhead.
  • Maximum size is limited by available OCL memory.
  • Not recommended for critical data (no persistence).
  • Requires root privileges for the server (mlockall, OpenCL).
  • mlockall might fail if limits (ulimit -l) are too low or user lacks privileges.

License

MIT


Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Dependencies

~10–18MB
~364K SLoC