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.

14 Module Documentation3.5 Stream ManagementFunctions• cudaError_t cudaStreamCreate (cudaStream_t ∗pStream)Create an asynchronous stream.• cudaError_t cudaStreamDestroy (cudaStream_t stream)Destroys and cleans up an asynchronous stream.• cudaError_t cudaStreamQuery (cudaStream_t stream)Queries an asynchronous stream for completion status.• cudaError_t cudaStreamSynchronize (cudaStream_t stream)Waits for stream tasks to complete.3.5.1 Detailed DescriptionThis section describes the stream management functions of the <strong>CUDA</strong> runtime application programming interface.3.5.2 Function Documentation3.5.2.1 cudaError_t cudaStreamCreate (cudaStream_t ∗ pStream)Creates a new asynchronous stream.Parameters:pStream - Pointer to new stream identifierReturns:cudaSuccess, cudaErrorInvalidValueNote:Note that this function may also return error codes from previous, asynchronous launches.See also:cudaStreamQuery, cudaStreamSynchronize, cudaStreamDestroy3.5.2.2 cudaError_t cudaStreamDestroy (cudaStream_t stream)Destroys and cleans up the asynchronous stream specified by stream.Parameters:stream - Stream identifierGenerated 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!