Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reimunotmoe/clmemdisk
An elegant way to make use of the spare memory of your OpenCL-compatible graphics card.
https://github.com/reimunotmoe/clmemdisk
Last synced: 4 days ago
JSON representation
An elegant way to make use of the spare memory of your OpenCL-compatible graphics card.
- Host: GitHub
- URL: https://github.com/reimunotmoe/clmemdisk
- Owner: ReimuNotMoe
- Created: 2018-04-13T13:34:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T13:18:21.000Z (almost 6 years ago)
- Last Synced: 2024-10-26T21:34:34.883Z (17 days ago)
- Language: C
- Size: 2.93 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ClMemdisk
## Introduction
An elegant way to make use of the spare memory of your OpenCL-compatible graphics card.
- Maps GPU memory to a block device.
- Uses OpenCL API, (technically) works on any recent GPU.## Build
### Dependencies
- OpenCL
- [BUSE](https://github.com/ReimuNotMoe/BUSE)
### Compile
Nearly all my projects use CMake. It's very simple:mkdir build
cd build
cmake ..
make -j `nproc`## How to use
```
Usage: clmemdisk [/dev/nbdX] [size] [platform_id:device_id] [[platform_id:device_id]...]Operations:
list List available OpenCL platforms and devices
single Use memory from single device
stripe Use memory from multiple devices with striping (WIP)Example:
# clmemdisk list
# clmemdisk single /dev/nbd0 512M 0:0
# clmemdisk stripe /dev/nbd233 1G 0:0 0:1 0:2
```## Caveats
- Only known to work in Linux.
- You need to load the `nbd` kernel module first.## Screenshot
![ClMemDisk_Demo](https://raw.githubusercontent.com/ReimuNotMoe/ReimuNotMoe.github.io/master/images/ClMemDisk_Demo_.png)