Struct rcublas::API [−][src]
pub struct API;
Expand description
Defines the cuBLAS API.
Implementations
Compute the sum of magnitudes of the provided vector elements.
x
: pointer to input vector.
result
: pointer to output scalar.
n
: number of elements to compute sum over (should not be greater than x
).
stride
: offset from one input element to the next. Defaults to 1
.
Computes a vector-scalar product and adds the result to a vector.
alpha
: pointer to input scalar.
x
: pointer to input vector.
y
: pointer to output vector.
n
: number of elements to use for operation (should not be greater than number of elements in x
or y
).
stride_x
: offset from one element in x to the next. Defaults to 1
.
stride_y
: offset from one element in y to the next. Defaults to 1
.
Copies a vector into another vector.
x
: pointer to input vector.
y
: pointer to output vector.
n
: number of elements to use for operation (should not be greater than number of elements in x
or y
).
stride_x
: offset from one element in x to the next. Defaults to 1
.
stride_y
: offset from one element in y to the next. Defaults to 1
.
TODO: DOC
TODO: DOC
TODO: DOC
Performs a general matrix-matrix multiplication.
Note: the matrices are expected to be ordered column-major (FORTRAN-style).
Create a new cuBLAS context, allocating resources on the host and the GPU.
The returned Context must be provided to future cuBLAS calls. Creating contexts all the time can lead to performance problems. Generally one Context per GPU device and configuration is recommended.
Destroys the cuBLAS context, freeing its resources.
Should generally not be called directly. Automatically called when dropping a Context.
Safety
Instructs CUDA to remove the cuBLAS handle, causing any further instructions to fail. This should be called at the end of using cuBLAS and should ideally be handled by drop exclusively, and never called by the user.
Retrieve the pointer mode for a given cuBLAS context.
pub fn set_pointer_mode(
context: &mut Context,
pointer_mode: PointerMode
) -> Result<(), Error>
pub fn set_pointer_mode(
context: &mut Context,
pointer_mode: PointerMode
) -> Result<(), Error>
Set the pointer mode for a given cuBLAS context.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for API
impl UnwindSafe for API
Blanket Implementations
Mutably borrows from an owned value. Read more