printf("Value: %le \n", out[1]);
printf("Value: %le \n", out[2]);
+ printf("OK\n");
return EXIT_SUCCESS;
}
#include <CL/cl.h>
#include "poclu.h"
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
if (ret == 0)
{
+ printf ("OK\n");
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
return EXIT_FAILURE;
}
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
}
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
\r
/* The call should return cleanly, the compiler should not crash. */\r
\r
+ std::cout << "OK" << std::endl;\r
+\r
/* Force exit of the process regardless of the running kernel thread\r
by replacing the process with a dummy process. */\r
execlp("true", "true", NULL);\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
return EXIT_FAILURE;
}
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
}
0, 1, 1, 2, 3, 4, 5, 5, 5, 6, 7, 7, 8, 8, 9, 10, 10, 10, 10, 10, 10, 11, 11, 12, 13, 13, 13, 13, 14, 15, 16, 17, 17, 17, 17, 18, 19, 20, 20, 21, 21, 22, 23, 24, 25, 25, 26, 26, 26, 27, 27, 28, 28, 29, 29, 29, 30, 30, 30, 30, 31, 32, 33, 33, 34, 34, 35, 35, 36, 37, 38, 38, 39, 39, 40, 40, 41, 41, 41, 42, 42, 43, 43, 43, 43, 43, 43, 44, 45, 45, 46, 46, 46, 46, 46, 47, 47, 47, 47, 47
0: Portable Computing Language
CL gave correct results
+OK
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
platformList[0].unloadCompiler();\r
\r
// If the kernel compiler succeeds, we are happy for now.\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
} \r
catch (cl::Error &err) {\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
\r
/* The call should return cleanly, the compiler should not crash. */\r
\r
+ std::cout << "OK" << std::endl;\r
+\r
/* Force exit of the process regardless of the running kernel thread\r
by replacing the process with a dummy process. */\r
execlp("true", "true", NULL);\r
queue.finish();
cl::Platform::getDefault().unloadCompiler();
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
}
}
if (success) {
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
queue.finish();
cl::Platform::getDefault().unloadCompiler();
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
}
}
}
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
}
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_TARGET_OPENCL_VERSION 120
#include <CL/cl2.hpp>
+#include <iostream>
const char *SOURCE = R"RAW(
#define lid(N) ((int) get_local_id(N))
cl::NDRange(n),
cl::NDRange(n));
queue.finish();
+
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
}
platformList[0].unloadCompiler();\r
\r
if (success) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
}\r
}\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
queue.finish();
platformList[0].unloadCompiler();
- if (ok)
+ if (ok) {
+ std::cout << "OK" << std::endl;
return EXIT_SUCCESS;
+ }
}
catch (cl::Error &err) {
std::cerr
clReleaseDevice(device);
clUnloadPlatformCompiler(platform);
+ printf ("OK\n");
return EXIT_SUCCESS;
}
return EXIT_FAILURE;\r
}\r
\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
}\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
} \r
catch (cl::Error &err) {\r
std::cerr\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok) \r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
} \r
catch (cl::Error &err) {\r
std::cerr\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok)\r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
}\r
catch (cl::Error &err) {\r
std::cerr\r
queue.finish();\r
platformList[0].unloadCompiler();\r
\r
- if (ok) \r
+ if (ok) {\r
+ std::cout << "OK" << std::endl;\r
return EXIT_SUCCESS;\r
+ }\r
} \r
catch (cl::Error &err) {\r
std::cerr\r
}
CHECK_CL_ERROR (clUnloadCompiler ());
+
+ printf ("OK\n");
return EXIT_SUCCESS;
}
if (err == CL_SUCCESS)
{
+ printf ("OK\n");
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
free(h_b);
free(h_c);
+ printf ("OK\n");
return EXIT_SUCCESS;
error:
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
}
CHECK_CL_ERROR (clReleaseContext (context));
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
-
}
Callback function: event status: CL_SUBMITTED
Callback function: event status: CL_RUNNING
Callback function: event status: CL_COMPLETE
+OK
if (errors)
return EXIT_FAILURE;
+ printf ("OK\n");
return EXIT_SUCCESS;
}
CHECK_CL_ERROR (clUnloadCompiler ());
#endif
+
+ printf ("OK\n");
return EXIT_SUCCESS;
}
CHECK_CL_ERROR (clReleaseContext (ctx));
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
-
}
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
-
}
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
}
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
}
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
}
CHECK_CL_ERROR (clUnloadCompiler ());
+ printf ("OK\n");
return EXIT_SUCCESS;
-
}
3 0 1: after barriers
2 1 1: after barriers
3 1 1: after barriers
+OK
LOCAL_ID=1 inside if
LOCAL_ID=0 after if
LOCAL_ID=1 after if
+OK
gid_x 0 after barrier at iteration 1
gid_x 1 after barrier at iteration 1
OK
+OK
LOCAL_ID=1 inside for, iteration 1, value 1
LOCAL_ID=0 after if
LOCAL_ID=1 after if
+OK
auxfunc
id=0: EEE.
id=1: EEE.
+OK
i:1 2 0 0 after barrier
i:1 2 0 0 after latch 1
i:1 2 0 0 after latch 2
+OK
i: 1 gid: 2
i: 0 gid: 3
i: 1 gid: 3
+OK
+OK
global: 0-0-0
global: 0-0-1
global: 0-0-2
if (err == CL_SUCCESS)
{
+ printf ("OK\n");
return EXIT_SUCCESS;
}
return EXIT_FAILURE;