[PATCH 76/90] 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>
Fri, 7 Jan 2022 23:55:22 +0000 (23:55 +0000)
Gbp-Pq: Name 0076-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
lib/llvmopencl/LLVMUtils.h

index 7caf6d71d3c0361a96ce9aa20158a8221d9bf06f..15cf97d905870e897b6e0c2adccb3d282201a798 100644 (file)
@@ -107,6 +107,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 3bbb2c2746f2109cfaadcfe3270e3ce733568d00..68fe72ce0ecab5c3d4d9ee40a484a93ebd9606c8 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 4000040c0954552631ec3cf73f253278245ba27a..f2ae7d0f3f7f389131e1ea9e33db648091729695 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 e33c76d29f71df574bd944011fdc0eadfc707e43..60f48d23d4ea202a7c2c3bfb82b7a2292fb44294 100644 (file)
@@ -68,6 +68,7 @@ extern "C" {
    * 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 2290124b08d39918e8a5948bad6f18103be2d7e2..d8cb86611c15294a7e6229c0e7b28418cb90b503 100644 (file)
@@ -144,6 +144,7 @@ void pocl_unmap_command_finished (cl_device_id dev,
                                   pocl_mem_identifier *mem_id, cl_mem mem,
                                   mem_mapping_t *map);
 
+POCL_EXPORT
 void pocl_unmap_command_finished2 (cl_event event, _cl_command_t *cmd);
 
 /**
@@ -213,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);
 
index fe77e2ea879d6329314614cfaa5397a4f2bc8202..bbcaf2b0128a9a6e87c847dd96bc3411f2222e53 100644 (file)
@@ -49,6 +49,7 @@ void
 regenerate_kernel_metadata(llvm::Module &M, FunctionMapping &kernels);
 
 // Remove a function from a module, along with all callsites.
+POCL_EXPORT
 void eraseFunctionAndCallers(llvm::Function *Function);
 
 inline bool