Module prelude
Source pub use crate::thread;
- assert_eq
- Asserts that two expression are equal and returns an
AssertionFailed error to the application that launched the kernel
if it is not true. - assert_ne
- Asserts that two expression are not equal and returns an
AssertionFailed error to the application that launched the kernel
if it is not true. - format
- Creates a
String using interpolation of runtime expressions. - print
- Alternative to
print! which works on CUDA. See print for more info. - println
- Alternative to
println! which works on CUDA. See print for more info.
- Box
- A pointer type that uniquely owns a heap allocation of type
T. - Rc
- A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference
Counted’.
- String
- A UTF-8–encoded, growable string.
- Vec
- A contiguous growable array type, written as
Vec<T>, short for ‘vector’. - f16
- A 16-bit floating point type implementing the IEEE 754-2008 standard
binary16 a.k.a half
format.
- ToOwned
- A generalization of
Clone to borrowed data. - ToString
- A trait for converting a value to a
String.
- kernel
- Registers a function as a gpu kernel.