Function rustacuda::init[][src]

pub fn init(flags: CudaFlags) -> CudaResult<()>
Expand description

Initialize the CUDA Driver API.

This must be called before any other RustaCUDA (or CUDA) function is called. Typically, this should be at the start of your program. All other functions will fail unless the API is initialized first.

The flags parameter is used to configure the CUDA API. Currently no flags are defined, so it must be CudaFlags::empty().