| 107 | } |
| 108 | |
| 109 | std::string Program::LoadClFile(const std::string& Path) |
| 110 | { |
| 111 | ifstream file(Path); |
| 112 | |
| 113 | if (!file.is_open()) |
| 114 | throw cl::Error(CL_INVALID_PROGRAM, "could not find the program file"); |
| 115 | |
| 116 | string content(istreambuf_iterator<char>(file), (istreambuf_iterator<char>())); |
| 117 | |
| 118 | return content; |
| 119 | } |
| 120 | |
| 121 | |
| 122 | // MultiProgram |
nothing calls this directly
no outgoing calls
no test coverage detected