Commit c4ee0e4a authored by Kazutomo Yoshii's avatar Kazutomo Yoshii
Browse files

fixed on loadprog

parent a1e16f52
......@@ -100,13 +100,14 @@ public:
bool loadprog(string fn) {
char *srcfile = loadfile(fn);
cl_ulong sz;
char *srcfile = loadfile(fn, sz);
cl_int err = CL_SUCCESS;
if (! srcfile)
return false;
cl::Program::Sources src;
cl::Program p(ctx, src, &err);
if (err != CL_SUCCESS) {
cout << "Program failed" << err << endl;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment