C Specification

The dispatch_data field of a platform can be set using the following function:

// Provided by cl_khr_icd
cl_int clIcdSetPlatformDispatchDataKHR(
    cl_platform_id platform,
    void* dispatch_data);
clIcdSetPlatformDispatchDataKHR is provided by the cl_khr_icd extension.

Parameters

  • platform refers to the platform ID returned by clIcdGetPlatformIDsKHR

  • dispatch_data is the value to set the dispatch_data field of the structure to

Description

clIcdSetPlatformDispatchDataKHR returns CL_SUCCESS if the function is executed successfully. It returns CL_INVALID_PLATFORM if platform is not a valid platform.

See Also

Document Notes

For more information, see the OpenCL Specification

This page is extracted from the OpenCL Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2025 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0