Crate ulib

Source
Expand description

§ulib: General library for universal computing.

This library basically implements traits and structs for holding vectors on hosts and different kinds of devices. It is intended to be used with ucc builder which generates wrapper bindings using this library.

CUDA support must be manually enabled using the feature cuda.

Structs§

DeviceContext
A generic device context
UVec
Universal vector-like array storage.

Enums§

Device
All supported device types.

Constants§

MAX_DEVICES

Traits§

AsUPtr
A trait to get raw pointer for any device.
AsUPtrMut
A trait to get mutable raw pointer for any device.
UniversalCopy
The trait for universally bit-copyable element.

Derive Macros§

UniversalCopy