cl_program program,
unsigned device_i);
+POCL_EXPORT
void pocl_cache_work_group_function_path (char *parallel_bc_path,
cl_program program,
unsigned device_i, cl_kernel kernel,
int pocl_rename(const char *oldpath, const char *newpath);
+POCL_EXPORT
int pocl_exists(const char* path);
/* Touch file to change last modified time. For portability, this
int pocl_touch_file(const char* path);
/* Writes or appends data to a file. */
+POCL_EXPORT
int pocl_write_file(const char* path, const char* content,
uint64_t count, int append, int dont_rewrite);
POdeclsym(clReleaseCommandQueue)
POdeclsym(clReleaseContext)
POdeclsym(clReleaseDevice)
+POCL_EXPORT
POdeclsym(clReleaseEvent)
POdeclsym(clReleaseKernel)
POdeclsym(clReleaseMemObject)
POdeclsym(clRetainCommandQueue)
POdeclsym(clRetainContext)
POdeclsym(clRetainDevice)
+POCL_EXPORT
POdeclsym(clRetainEvent)
POdeclsym(clRetainKernel)
POdeclsym(clRetainMemObject)
* WG function that might be specialized according to the properties of
* the given Command.
*/
+ POCL_EXPORT
int pocl_llvm_generate_workgroup_function (unsigned DeviceI,
cl_device_id Device,
cl_kernel Kernel,
int pocl_get_int_option(const char *key, int default_value);
POCL_EXPORT
int pocl_get_bool_option(const char *key, int default_value);
+POCL_EXPORT
const char* pocl_get_string_option(const char *key, const char *default_value);
#ifdef __cplusplus
#include "config.h"
+#include "pocl_export.h"
+
#ifdef __cplusplus
extern "C" {
#endif
extern const unsigned pocl_timer_resolution;
+POCL_EXPORT
uint64_t pocl_gettimemono_ns();
int pocl_gettimereal(int *year, int *mon, int *day, int *hour, int *min, int *sec, int* nanosec);
const char*
pocl_status_to_str (int status);
+POCL_EXPORT
const char *
pocl_command_to_str (cl_command_type cmd);