| 6775 | // Template specialization for CL_PROGRAM_BINARIES |
| 6776 | template <> |
| 6777 | inline 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 | |
| 6803 | template<> |
| 6804 | inline vector<vector<unsigned char>> cl::Program::getInfo<CL_PROGRAM_BINARIES>(cl_int* err) const |
no test coverage detected