MCPcopy Create free account
hub / github.com/CRVI/OpenCLIPP / LoadClFile

Method LoadClFile

C++/programs/Program.cpp:109–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109std::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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected