12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6 Module Documentation3.2 Thread ManagementFunctions• cudaError_t cudaThreadExit (void)Exit and clean up from <strong>CUDA</strong> launches.• cudaError_t cudaThreadSynchronize (void)Wait for compute device to finish.3.2.1 Detailed DescriptionThis section describes the thread management functions of the <strong>CUDA</strong> runtime application programming interface.3.2.2 Function Documentation3.2.2.1 cudaError_t cudaThreadExit (void)Explicitly cleans up all runtime-related resources associated with the calling host thread. Any subsequent API callreinitializes the runtime. cudaThreadExit() is implicitly called on host thread exit.Returns:Note:See also:cudaSuccessNote that this function may also return error codes from previous, asynchronous launches.cudaThreadSynchronize3.2.2.2 cudaError_t cudaThreadSynchronize (void)Blocks until the device has completed all preceding requested tasks. cudaThreadSynchronize() returns an error if oneof the preceding tasks has failed.Returns:Note:See also:cudaSuccessNote that this function may also return error codes from previous, asynchronous launches.cudaThreadExitGenerated 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!