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

added error msg

parent 5cc841da
......@@ -21,7 +21,11 @@ static void test_clwrap()
int *a0 = new int[gsiz];
int *a1 = new int[gsiz];
cw.prepKernel("dummy", "dummy"); // filename w/ ext, kernelname
bool ret = cw.prepKernel("dummy", "dummy"); // filename w/ ext, kernelname
if (!ret) {
cout << "prepKernel() failed!" << endl;
return;
}
cw.appendArg(sizeof(int)*gsiz, a0, cw.DEV2HOST);
cw.appendArg(sizeof(int)*gsiz, a1, cw.DEV2HOST);
......
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