12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.17 Initialization 953.17 InitializationFunctions• CUresult cuInit (unsigned int Flags)Initialize the <strong>CUDA</strong> driver API.3.17.1 Detailed DescriptionThis section describes the initialization functions of the low-level <strong>CUDA</strong> driver application programming interface.3.17.2 Function Documentation3.17.2.1 CUresult cuInit (unsigned int Flags)Initializes the driver API and must be called before any other function from the driver API. Currently, the Flagsparameter must be 0. If cuInit() has not been called, any function from the driver API will return <strong>CUDA</strong>_ERROR_-NOT_INITIALIZED.Parameters:Flags - Initialization flag for <strong>CUDA</strong>.Returns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_INVALID_DEVICENote that this function may also return error codes from previous, asynchronous launches.Generated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!