MCPcopy Create free account
hub / github.com/brichard19/BitCrack / loadSource

Method loadSource

clUtil/clContext.cpp:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149std::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
162cl_program cl::CLProgram::getProgram()
163{

Callers

nothing calls this directly

Calls 1

CLExceptionClass · 0.85

Tested by

no test coverage detected