OpenCL Programming Guide-11.1OpenCL Embedded Profile

OpenCL Profile Overview

The OpenCL specification defines two profiles: one for desktop devices (full profile) and another for handheld and embedded devices (embedded profile). Handheld and embedded devices have significant limitations in screen size and power supply, requiring some relaxation of the requirements defined in the full profile. Embedded profiling focuses on a strict subset of the OpenCL 1.1 specification required for full profiling. As a strict subset of the full profile, the embedded profile has the following benefits:
1) One specification can be provided for both profiles without the need for separate specifications.
2) OpenCL programs written for embedded profiles can run on devices that implement full profiles.
3) Allow the OpenCL working group to consider both desktop and handheld devices when defining requirements for future OpenCL revisions.

Profiles are associated with platforms and devices. The platform implements the OpenCL platform and runtime API. The platform supports one or more devices, each device supporting a specific profile. Code Listing 13-1 describes how to query the platform and the profiles supported by each device supported by the platform.

// 代码清单13-1 查询平台和设备简档
void query_profile(cl_platform_id platform)
{
   
    
    
     char platform_profile[

Guess you like

Origin blog.csdn.net/qq_36314864/article/details/132904581