Sorry, you need to enable JavaScript to visit this website.

Feedback

Your feedback is important to keep improving our website and offer you a more reliable experience.

C for Metal Development Package

The Intel® C for Metal development package is a software development package for Intel® Graphics Technology. It includes the Intel® C for Metal Compiler, the Intel® C for Metal Runtime, Intel® Media Driver for VAAPI, and reference examples, which can be used to develop applications accelerated by Intel® Graphics Media Accelerator. A typical application contains two kinds of source code, kernel and host. The kernel is written in Intel® C for Media language, compiled to GPU ISA binary by the Intel® C for Metal Compiler, and executed on the GPU. Host manages workloads through the Intel® C for Metal Runtime and user mode media driver.

Event-Driven Synchronization

BY Li Huang ON Jun 13, 2019

Tutorial 10. Event-Driven Synchronization

In example linear_up_walker , since the output surface is created in user-provided system memory, there is no need to call ReadSurface to access those data after enqueue. However, we still need to know when the GPU task is finished, and the output is complete. An event-driven synchronization method is used here

    unsigned long time_out = -1;
    cm_result_check(sync_event->WaitForTaskFinished(time_out));

    // Destroys a CmTask object.
    // CmTask will be destroyed when CmDevice is destroyed.