table of contents
CLGETPROGRAMBUILDINF(3clc) | OpenCL Manual | CLGETPROGRAMBUILDINF(3clc) |
NAME¶
clGetProgramBuildInfo - Returns build information for each device in the program object.
¶
cl_int clGetProgramBuildInfo(cl_program program, cl_device_id device, cl_program_build_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret);
PARAMETERS¶
program
device
param_name
cl_program_buid_info | Return Type and Info. returned in param_value |
CL_PROGRAM_BUILD_STATUS | Return type: cl_build_status Returns the build, compile or link status, whichever was performed last on program for device. This can be one of the following: CL_BUILD_NONE. The build status returned if no clBuildProgram(3clc), clCompileProgram(3clc) or clLinkProgram(3clc) has been performed on the specified program object for device. CL_BUILD_ERROR. The build status returned if clBuildProgram(3clc), clCompileProgram(3clc) or clLinkProgram(3clc) whichever was performed last on the specified program object for device generated an error. CL_BUILD_SUCCESS. The build status returned if clBuildProgram(3clc), clCompileProgram(3clc) or clLinkProgram(3clc) whichever was performed last on the specified program object for device was successful. CL_BUILD_IN_PROGRESS. The build status returned if clBuildProgram(3clc), clCompileProgram(3clc) or clLinkProgram(3clc) whichever was performed last on the specified program object for device has not finished. |
CL_PROGRAM_BUILD_OPTIONS | Return type: char[] Return the build, compile or link options specified by the options argument in clBuildProgram(3clc), clCompileProgram(3clc) or clLinkProgram(3clc), whichever was performed last on program for device. If build status of program for device is CL_BUILD_NONE, an empty string is returned. |
CL_PROGRAM_BUILD_LOG | Return type: char[] Return the build, compile or link log for clBuildProgram(3clc), clCompileProgram(3clc) or clLinkProgram(3clc) whichever was performed last on program for device. If build status of program for device is CL_BUILD_NONE, an empty string is returned. |
CL_PROGRAM_BINARY_TYPE | Return type: cl_program_binary_type Return the program binary type for device. This can be one of the following values: CL_PROGRAM_BINARY_TYPE_NONE. There is no binary associated with device. CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT. A compiled binary is associated with device. This is the case if program was created using clCreateProgramWithSource(3clc) and compiled using clCompileProgram(3clc) or a compiled binary is loaded using clCreateProgramWithBinary(3clc). CL_PROGRAM_BINARY_TYPE_LIBRARY. A library binary is associated with device. This is the case if program was created by clLinkProgram(3clc) which is called with the –createlibrary link option or if a library binary is loaded using clCreateProgramWithBinary(3clc). CL_PROGRAM_BINARY_TYPE_EXECUTABLE. An executable binary is associated with device. This is the case if program was created by clLinkProgram(3clc) without the –createlibrary link option or program was created by clBuildProgram(3clc) or an executable binary is loaded using clCreateProgramWithBinary(3clc). |
param_value
param_value_size
param_value_size_ret
NOTES¶
A program binary (compiled binary, library binary or executable binary) built for a parent device can be used by all its sub-devices. If a program binary has not been built for a sub-device, the program binary associated with the parent device will be used.
A program binary for a device specified with clCreateProgramWithBinary(3clc) or queried using clGetProgramInfo(3clc) can be used as the binary for the associated root device, and all sub-devices created from the root-level device or sub-devices thereof.
ERRORS¶
Returns CL_SUCCESS if the function is executed successfully. Otherwise it returns the following:
SPECIFICATION¶
OpenCL Specification[1]
SEE ALSO¶
clGetProgramInfo(3clc)
AUTHORS¶
The Khronos Group
COPYRIGHT¶
Copyright © 2007-2011 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to the
condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.
NOTES¶
- 1.
- OpenCL Specification
01/14/2021 | The Khronos Group |