[−][src]Crate accel_core
Support crate for writting GPU kernel in Rust
- This crate works only for
nvptx64-nvidia-cuda
target - There is no support of
libstd
fornvptx64-nvidia-cuda
target, i.e. You need to write#![no_std]
Rust code. alloc
crate is supported byaccel_core::PTXAllocator
which utilizes CUDA malloc/free system-calls- You can use
println!
andassert_eq!
throught it.
- You can use
Macros
assert_eq | Assertion in GPU kernel for two expressions are equal. |
assert_ne | Assertion in GPU kernel for two expressions are not equal. |
Alternative of std::print! using CUDA | |
println | Alternative of std::println! using CUDA |
Structs
Dim3 | Dimension specified in kernel launching |
Idx3 | Indices where the kernel code running on |
PTXAllocator | Memory allocator using CUDA malloc/free |
Functions
block_dim | |
block_idx | |
grid_dim | |
index | |
thread_idx |