OLD | NEW |
(Empty) | |
| 1 #ifndef skpdiff_util_DEFINED |
| 2 #define skpdiff_util_DEFINED |
| 3 |
| 4 #include <vector> |
| 5 #include <string> |
| 6 #include <CL/cl.h> |
| 7 |
| 8 /** |
| 9 * Converts an OpenCL error number into the string of its enumeration name. |
| 10 * @param err The OpenCL error number |
| 11 * @return The string of the name of the error; "UNKOWN" if the error number is
invalid |
| 12 */ |
| 13 const char* cl_error_to_string(cl_int err); |
| 14 |
| 15 /** |
| 16 * Get a positive monotonic real-time measure of the amount of seconds since som
e undefined epoch. |
| 17 * Maximum precision is the goal of this routine. |
| 18 * @return Amount of time in seconds since some epoch |
| 19 */ |
| 20 double get_seconds(); |
| 21 |
| 22 /** |
| 23 * Get file entries of the given directory. |
| 24 * @param path A path to a directory to enumerate |
| 25 * @param entries A vector to return the results into |
| 26 * @return True on success, false otherwise |
| 27 */ |
| 28 bool get_directory(const char path[], std::vector<std::string>* entries); |
| 29 |
| 30 |
| 31 #endif |
OLD | NEW |