| 147 | } |
| 148 | |
| 149 | std::string cl::CLProgram::loadSource(std::string srcFile) |
| 150 | { |
| 151 | std::ifstream f(srcFile); |
| 152 | if(!f.good()) { |
| 153 | throw CLException(CL_BUILD_PROGRAM_FAILURE, "'" + srcFile + "' not found"); |
| 154 | } |
| 155 | |
| 156 | std::stringstream buf; |
| 157 | buf << f.rdbuf(); |
| 158 | |
| 159 | return buf.str(); |
| 160 | } |
| 161 | |
| 162 | cl_program cl::CLProgram::getProgram() |
| 163 | { |
nothing calls this directly
no test coverage detected