MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / getInfo

Method getInfo

include/CL/opencl.hpp:6777–6801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6775// Template specialization for CL_PROGRAM_BINARIES
6776template <>
6777inline cl_int cl::Program::getInfo(cl_program_info name, vector<vector<unsigned char>>* param) const
6778{
6779 if (name != CL_PROGRAM_BINARIES) {
6780 return CL_INVALID_VALUE;
6781 }
6782 if (param) {
6783 // Resize the parameter array appropriately for each allocation
6784 // and pass down to the helper
6785
6786 vector<size_type> sizes = getInfo<CL_PROGRAM_BINARY_SIZES>();
6787 size_type numBinaries = sizes.size();
6788
6789 // Resize the parameter array and constituent arrays
6790 param->resize(numBinaries);
6791 for (size_type i = 0; i < numBinaries; ++i) {
6792 (*param)[i].resize(sizes[i]);
6793 }
6794
6795 return detail::errHandler(
6796 detail::getInfo(&::clGetProgramInfo, object_, name, param),
6797 __GET_PROGRAM_INFO_ERR);
6798 }
6799
6800 return CL_SUCCESS;
6801}
6802
6803template<>
6804inline vector<vector<unsigned char>> cl::Program::getInfo<CL_PROGRAM_BINARIES>(cl_int* err) const

Callers 1

CommandQueueMethod · 0.45

Calls 4

errHandlerFunction · 0.85
getInfoFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected