Module opencl3::program[][src]

Structs

Program

An OpenCL program object.
Stores the names of the OpenCL kernels in the program. Implements the Drop trait to call release_program when the object is dropped.

Enums

ProgramBuildInfo
ProgramInfo

Constants

BUILD_OPTION_SPIR_STD_1_2
BUILD_OPTION_X_SPIR
CL_BUILD_ERROR
CL_BUILD_IN_PROGRESS
CL_BUILD_NONE
CL_BUILD_SUCCESS
CL_DENORMS_ARE_ZERO
CL_FAST_RELAXED_MATH
CL_FINITE_MATH_ONLY
CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT
CL_KERNEL_ARG_INFO

This option allows the compiler to store information about the arguments of kernels in the program executable.

CL_MAD_ENABLE
CL_NO_SIGNED_ZEROS
CL_NO_SUBGROUP_INFO
CL_OPT_DISABLE
CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT
CL_PROGRAM_BINARY_TYPE_EXECUTABLE
CL_PROGRAM_BINARY_TYPE_LIBRARY
CL_PROGRAM_BINARY_TYPE_NONE
CL_SINGLE_RECISION_CONSTANT
CL_STD_2_0

Applications are required to specify the -cl-std=CL2.0 build option to compile or build programs with OpenCL C 2.0.

CL_STD_3_0

Applications are required to specify the -cl-std=CL3.0 build option to compile or build programs with OpenCL C 3.0.

CL_STRICT_ALIASING
CL_UNIFORM_WORK_GROUP_SIZE
CL_UNSAFE_MATH_OPTIMIZATIONS
CREATE_LIBRARY
DEBUG_OPTION
ENABLE_LINK_OPTIONS

Functions

build_program

Build (compile & link) a program executable.
Calls clBuildProgram to build an OpenCL program object.

clCreateProgramWithBuiltInKernels
clSetProgramReleaseCallback
clSetProgramSpecializationConstant
clUnloadPlatformCompiler
compile_program

Compile a program’s source for the devices the OpenCL context associated with the program.
Calls clCompileProgram to compile an OpenCL program object.

create_program_with_binary

Create an OpenCL program object for a context and load binary bits into that object.
Calls clCreateProgramWithBinary to create an OpenCL program object.

create_program_with_builtin_kernels

Create an OpenCL program object for a context and loads the information related to the built-in kernels into that object.
Calls clCreateProgramWithBuiltInKernels to create an OpenCL program object.

create_program_with_source

Create an OpenCL program object for a context and load source code into that object.
Calls clCreateProgramWithSource to create an OpenCL program object.

get_program_build_data

Get data about an OpenCL program build. Calls clGetProgramBuildInfo to get the desired data about the program build.

get_program_build_info

Get specific information about an OpenCL program build.
Calls clGetProgramBuildInfo to get the desired information about the program build.

get_program_data

Get data about an OpenCL program. Calls clGetProgramInfo to get the desired data about the program.

get_program_info

Get specific information about an OpenCL program.
Calls clGetProgramInfo to get the desired information about the program.

link_program

Link a set of compiled program objects and libraries for the devices in the OpenCL context associated with the program.
Calls clLinkProgram to link an OpenCL program object.

release_program

Release an OpenCL program.
Calls clReleaseProgram to decrement the program reference count.

retain_program

Retain an OpenCL program.
Calls clRetainProgram to increment the program reference count.

unload_platform_compiler

Release the resources allocated by the OpenCL compiler for platform.
Calls clUnloadPlatformCompiler.