Skip to main content

Crate baracuda_core

Crate baracuda_core 

Source
Expand description

Runtime machinery shared across baracuda crates.

  • error — loader errors, a generic per-library Error<S>, and the library-erased BaracudaError.
  • loader — the dynamic loader wrapper used by every -sys crate.
  • platform — OS detection and default library search paths.
  • stream_mode — process-wide default-stream-semantics selector.

Depending on this crate pulls in libloading. Crates that only need the type vocabulary should depend on baracuda-types instead.

Re-exports§

pub use error::BaracudaError;
pub use error::Error;
pub use error::LoaderError;
pub use loader::Library;

Modules§

error
Error types shared across the baracuda crates.
loader
Thin dynamic-loader wrapper around libloading.
platform
Platform detection and default library search paths.
stream_mode
Process-wide default-stream-semantics selector.

Structs§

CudaVersion
A CUDA major.minor version.

Enums§

Feature
Named CUDA capabilities, each gated by the minimum toolkit/driver version in which they became available. Safe-API crates call supports before invoking the underlying symbol and surface Error::FeatureNotSupported when the installed driver is too old.
StreamMode
The default-stream semantics the baracuda loader should request from cuGetProcAddress_v2.

Traits§

CudaStatus
A status code returned by an NVIDIA library call.