Flow and events in Cuda

Source: Internet
Author: User

Flow: The Cuda stream is much like a CPU thread, and the operations in a cuda stream are sequential and coarse-grained to manage the concurrent execution of multiple processing units.

In layman's terms, the flow is used for parallel operations, such as processing the same image, you use a stream to process the left half of the picture, and then the second stream to process the right half of the picture, the two streams of code executed simultaneously, speeding up processing speed.

Event: Recording Cuda events is a way for the application to track progress in a cuda stream.

In layman's parlance, events are used to time the algorithm, you set an event before the algorithm starts, set an event at the end of the algorithm, and the two-event difference is the algorithm execution times.

Flow and events in Cuda

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.