https://github.com/denzp/current
CUDA high-level Rust framework
https://github.com/denzp/current
cuda rust
Last synced: about 2 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T21:56:41.000Z (about 8 years ago)
- Last Synced: 2025-04-14T05:35:50.082Z (about 1 year ago)
- Topics: cuda, rust
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- 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=/tmp
cd 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=/tmp
cargo test
```