Struct cublas::API [] [src]

pub struct API;

Defines the cuBLAS API.

Methods

impl API
[src]

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

TODO: DOC

impl API
[src]

Performs a general matrix-matrix multiplication.

Note: the matrices are expected to be ordered column-major (FORTRAN-style).

impl API
[src]

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.

Retrieve the pointer mode for a given cuBLAS context.

Set the pointer mode for a given cuBLAS context.

Trait Implementations

impl Debug for API
[src]

Formats the value using the given formatter.

impl Copy for API
[src]

impl Clone for API
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more