[PATCH 14/14] add POCL_EXPORT to additional symbols needed by the cuda device
authorAndreas Beckmann <anbe@debian.org>
Wed, 10 Feb 2021 22:25:57 +0000 (23:25 +0100)
committerAndreas Beckmann <anbe@debian.org>
Thu, 30 Sep 2021 16:07:33 +0000 (17:07 +0100)
Gbp-Pq: Name 1014-add-POCL_EXPORT-to-additional-symbols-needed-by-the-.patch

include/pocl_cache.h
include/pocl_file_util.h
lib/CL/pocl_intfn.h
lib/CL/pocl_llvm.h
lib/CL/pocl_runtime_config.h
lib/CL/pocl_timing.h
lib/CL/pocl_util.h

index 377aa21a93e26a1762bf3410c3e91a73817e23e2..a4add4c9e4ad91403b870ea1384e7a1d4b6b5d11 100644 (file)
@@ -110,6 +110,7 @@ void pocl_cache_program_bc_path(char*       program_bc_path,
                                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,
index a6d73f0a7595dbd6141dbd56079740f71e6a3613..914ad9bf8571d758aecb771fdd2c5edf900553eb 100644 (file)
@@ -42,6 +42,7 @@ int pocl_remove(const char* path);
 
 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
@@ -49,6 +50,7 @@ int pocl_exists(const char* path);
 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);
 
index 84879f8eb2e50a554c1a1b61b205b62ef1b3c73d..2a72118c458dc8672706bcfc2fe82f00b82a1094 100644 (file)
@@ -99,6 +99,7 @@ POdeclsymICD(clIcdGetPlatformIDsKHR)
 POdeclsym(clReleaseCommandQueue)
 POdeclsym(clReleaseContext)
 POdeclsym(clReleaseDevice)
+POCL_EXPORT
 POdeclsym(clReleaseEvent)
 POdeclsym(clReleaseKernel)
 POdeclsym(clReleaseMemObject)
@@ -107,6 +108,7 @@ POdeclsym(clReleaseSampler)
 POdeclsym(clRetainCommandQueue)
 POdeclsym(clRetainContext)
 POdeclsym(clRetainDevice)
+POCL_EXPORT
 POdeclsym(clRetainEvent)
 POdeclsym(clRetainKernel)
 POdeclsym(clRetainMemObject)
index 960aca6d9c678802484b8b6c9c72ea78c39086ae..6c9a4ac55a3d8ba43edf6ec11692863275581a54 100644 (file)
@@ -68,6 +68,7 @@ int pocl_llvm_get_kernels_metadata(cl_program program, unsigned device_i);
  * 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,
index 7f47c13fb605fa0d8fa184bba39f8d4d857534f4..4f300f1dc5c61d381a232e545fc44dc82458c57d 100644 (file)
@@ -36,6 +36,7 @@ POCL_EXPORT
 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
index afcffd94855537dd140f8f4d53a1ff4cb49baba5..7d27b9b1514b33c48e8dcb0cb637dd177d500ccd 100644 (file)
 
 #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);
index c35c90865c419f119f0b012dd052aed87047936a..3789ca1d79a6938c3153563dc05442c90e608178 100644 (file)
@@ -214,6 +214,7 @@ void pocl_update_event_failed (cl_event event);
 const char*
 pocl_status_to_str (int status);
 
+POCL_EXPORT
 const char *
 pocl_command_to_str (cl_command_type cmd);