[PATCH 78/90] add POCL_EXPORT to additional symbols needed by the hsa device
authorAndreas Beckmann <anbe@debian.org>
Mon, 29 Nov 2021 19:21:02 +0000 (20:21 +0100)
committerAndreas Beckmann <anbe@debian.org>
Fri, 7 Jan 2022 23:55:22 +0000 (23:55 +0000)
Gbp-Pq: Name 0078-add-POCL_EXPORT-to-additional-symbols-needed-by-the-.patch

include/pocl_file_util.h
lib/CL/devices/basic/basic.c
lib/CL/devices/common.h
lib/CL/devices/pocl_local_size.h
lib/CL/pocl_debug.h
lib/CL/pocl_intfn.h
lib/CL/pocl_util.h

index 68fe72ce0ecab5c3d4d9ee40a484a93ebd9606c8..2030f1fd8715be56d544c6b78b47817e2e95e73b 100644 (file)
@@ -60,6 +60,7 @@ int pocl_write_tempfile (char *output_path, const char *prefix,
 
 /* Allocates memory and places file contents in it.
  * Returns negative errno on error, zero otherwise. */
+POCL_EXPORT
 int pocl_read_file(const char* path, char** content, uint64_t *filesize);
 
 int pocl_write_module(void *module, const char* path, int dont_rewrite);
index bab231b995a63b0b8bc6adda47208a8fc782bd9a..939282dbbcc315c4d59f93631ed787afd042cadc 100644 (file)
@@ -245,6 +245,7 @@ pocl_basic_init (unsigned j, cl_device_id device, const char* parameters)
 }
 
 
+POCL_EXPORT
 cl_int
 pocl_basic_alloc_mem_obj (cl_device_id device, cl_mem mem, void* host_ptr)
 {
@@ -274,6 +275,7 @@ pocl_basic_alloc_mem_obj (cl_device_id device, cl_mem mem, void* host_ptr)
 }
 
 
+POCL_EXPORT
 void
 pocl_basic_free (cl_device_id device, cl_mem mem)
 {
@@ -831,6 +833,7 @@ pocl_basic_svm_copy (cl_device_id dev, void *__restrict__ dst,
   memcpy (dst, src, size);
 }
 
+POCL_EXPORT
 void
 pocl_basic_svm_fill (cl_device_id dev, void *__restrict__ svm_ptr, size_t size,
                      void *__restrict__ pattern, size_t pattern_size)
index 05c1845b6fa74fd8890664845942f0de80f2a197..b3cf0fa7f6fe7b14361fbae61e0b4fc844a4306b 100644 (file)
@@ -82,6 +82,7 @@ void pocl_init_dlhandle_cache ();
 POCL_EXPORT
 char *pocl_check_kernel_disk_cache (_cl_command_node *cmd, int specialized);
 
+POCL_EXPORT
 size_t pocl_cmd_max_grid_dim_width (_cl_command_run *cmd);
 
 POCL_EXPORT
@@ -92,8 +93,10 @@ void pocl_check_kernel_dlhandle_cache (_cl_command_node *command,
 POCL_EXPORT
 void pocl_release_dlhandle_cache (_cl_command_node *cmd);
 
+POCL_EXPORT
 void pocl_setup_device_for_system_memory(cl_device_id device);
 
+POCL_EXPORT
 void pocl_reinit_system_memory();
 
 POCL_EXPORT
index 359a195ce76cad6d94261102bb57f87136b0dc9b..deaaef4fa02991244828c5bd2e878d1b98542cc4 100644 (file)
@@ -39,6 +39,7 @@ void pocl_default_local_size_optimizer (cl_device_id dev, size_t global_x,
  * results as a side effect from the small work-groups. Performs an exhaustive
  * search, thus should not be used with devices with a large work-group
  * support. */
+POCL_EXPORT
 void pocl_wg_utilization_maximizer (cl_device_id dev, size_t global_x,
                                     size_t global_y, size_t global_z,
                                     size_t *local_x, size_t *local_y,
index 0b90c1c0044acfc1d8a7d03e52ae2b6a7a288ec3..63b3b13a23d0971ebde1642f4a730b93d14311b0 100644 (file)
@@ -133,6 +133,7 @@ POCL_EXPORT
                                                const char* msg,
                                                const char *func,
                                                unsigned line);
+POCL_EXPORT
         extern void pocl_debug_print_duration (const char* func, unsigned line,
                                                const char* msg, uint64_t nanosecs);
         #define POCL_MEASURE_START(SUFFIX) \
index f2ae7d0f3f7f389131e1ea9e33db648091729695..d19a2b83fb1779d90c36985638426459af6200bb 100644 (file)
@@ -98,6 +98,7 @@ POdeclsym(clGetSupportedImageFormats)
 POdeclsymICD(clIcdGetPlatformIDsKHR)
 POdeclsym(clReleaseCommandQueue)
 POdeclsym(clReleaseContext)
+POCL_EXPORT
 POdeclsym(clReleaseDevice)
 POCL_EXPORT
 POdeclsym(clReleaseEvent)
index 35527ff0715fea1e318e0cd3ebefd1709fa8e827..60930ad792b1926de632227feed0c008b0650ae4 100644 (file)
@@ -195,6 +195,7 @@ void pocl_update_event_queued (cl_event event);
 POCL_EXPORT
 void pocl_update_event_submitted (cl_event event);
 
+POCL_EXPORT
 void pocl_update_event_running_unlocked (cl_event event);
 
 POCL_EXPORT
@@ -220,6 +221,7 @@ POCL_EXPORT
 const char *
 pocl_command_to_str (cl_command_type cmd);
 
+POCL_EXPORT
 int
 pocl_run_command(char * const *args);