cuInit: Initialize CUDA

Description Usage Arguments Value Author(s) References See Also

Description

This function ensures that the CUDA SDK is initialized. Typically, we don't have to explicitly initialize CUDA as it will be initialized when we call other functions.

Usage

1
cuInit(flags = 0L)

Arguments

flags

an integer vector giving the configuration parameters for starting the CUDA SDK. Currently this must be the number 0L as stated in the CUDA documentation

Value

This either returns 0L, indicating success, or raises an error.

Author(s)

Duncan Temple Lang

References

http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__INITIALIZE.html#group__CUDA__INITIALIZE_1g0a2f1517e1bd8502c7194c3a8c134bc3

See Also

createContext and cuGetContext

.cuda


duncantl/RCUDA documentation built on May 15, 2019, 5:26 p.m.