Developer Guide

Contents

Multi-Threaded Host Application

When there are parallel, independent datapaths and the host must process the data between kernel executions, consider using a multi-threaded host application.
The following figure illustrates how a single-threaded host application might process parallel, independent datapaths between kernel executions:
Kernel Execution by a Single-Threaded Host Application
Kernel Execution by a Single-Threaded Host Application
The DPC++ runtime is thread safe and supports multithreaded applications. Thus, you can perform tasks on the host in parallel threads while still allowing those threads to access the DPC++ APIs in a thread-safe way.
The following figure illustrates how a multi-threaded host application processes parallel, independent datapaths between kernel executions:
Kernel Execution by a Multi-Threaded Host Application in a Thread-Safe Runtime Environment
Kernel Execution by a Multi-Threaded Host Application in a Thread-Safe Runtime Environment

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804