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.

114 Module Documentation3.22 Stream ManagementFunctions• CUresult cuStreamCreate (CUstream ∗phStream, unsigned int Flags)Create a stream.• CUresult cuStreamDestroy (CUstream hStream)Destroys a stream.• CUresult cuStreamQuery (CUstream hStream)Determine status of a compute stream.• CUresult cuStreamSynchronize (CUstream hStream)Wait until a stream’s tasks are completed.3.22.1 Detailed DescriptionThis section describes the stream management functions of the low-level <strong>CUDA</strong> driver application programminginterface.3.22.2 Function Documentation3.22.2.1 CUresult cuStreamCreate (CUstream ∗ phStream, unsigned int Flags)Creates a stream and returns a handle in phStream. Flags is required to be 0.Parameters:phStream - Returned newly created streamFlags - Parameters for stream creation (must be 0)Returns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_OUT_OF_MEMORYSee also:Note that this function may also return error codes from previous, asynchronous launches.cuStreamDestroy, cuStreamQuery, cuStreamSynchronize3.22.2.2 CUresult cuStreamDestroy (CUstream hStream)Destroys the stream specified by hStream.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!