Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denzp/current
CUDA high-level Rust framework
https://github.com/denzp/current
cuda rust
Last synced: 19 days ago
JSON representation
CUDA high-level Rust framework
- Host: GitHub
- URL: https://github.com/denzp/current
- Owner: denzp
- Created: 2018-04-23T20:04:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T21:56:41.000Z (over 6 years ago)
- Last Synced: 2024-11-06T05:42:18.560Z (2 months ago)
- Topics: cuda, rust
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ⚡ Current ⚡
**CUDA high-level Rust framework**## Warning
The crate is a **far-far away** from being usable.## Hacking
You can inspect host and device code with a help of `xargo`, `cargo-expand` and `ptx-linker` (all can be installed from crates.io):``` bash
ptx-linker print nvptx64-nvidia-cuda > /tmp/nvptx64-nvidia-cuda.json
export RUST_TARGET_PATH=/tmpcd example
cargo expand # host-side version
xargo expand --target nvptx64-nvidia-cuda # device-side version
```## Running tests
You need to prepare target json and env variable with the json location for `rustc`:``` bash
ptx-linker print nvptx64-nvidia-cuda > /tmp/nvptx64-nvidia-cuda.json
export RUST_TARGET_PATH=/tmpcargo test
```