Expand description
Safe abstractions over crate::driver::result provided by CudaSlice, CudaDevice, CudaStream, and more.
Re-exports§
pub use crate::driver::result::DriverError;
Structs§
- Wrapper around sys::CUfunction. Used by crate::driver::LaunchAsync.
- Contains a reference counted pointer to both device and host memory allocated for type
T
. - A wrapper around sys::CUstream that safely ensures null stream is synchronized upon the completion of this streams work.
- A immutable sub-view into a CudaSlice created by CudaSlice::try_slice().
- A mutable sub-view into a CudaSlice created by CudaSlice::try_slice_mut().
- An abstraction for imported external memory.
- Configuration for result::launch_kernel
- An abstraction for a mapped buffer for some external memory.
Traits§
- Abstraction over CudaSlice/CudaViewMut
- Something that can be copied to device memory and turned into a parameter for result::launch_kernel.
- Consumes a CudaFunction to execute asychronously on the device with params determined by generic parameter
Params
. - Marker trait to indicate that the type is valid when all of its bits are set to 0.
Functions§
- Enables profile collection by the active profiling tool for the current context. If profiling is already enabled, then profiler_start() has no effect. More info in Cuda docs For RAII version see
Profiler::new
. - Disables profile collection by the active profiling tool for the current context. If profiling is already disabled, then profiler_stop() has no effect.