[PATCH 79/90] add POCL_EXPORT to additional symbols needed by the tce device
authorAndreas Beckmann <anbe@debian.org>
Fri, 3 Dec 2021 09:36:27 +0000 (10:36 +0100)
committerAndreas Beckmann <anbe@debian.org>
Fri, 7 Jan 2022 23:55:22 +0000 (23:55 +0000)
Gbp-Pq: Name 0079-add-POCL_EXPORT-to-additional-symbols-needed-by-the-.patch

include/pocl_cache.h
include/pocl_file_util.h
lib/CL/pocl_debug.h
lib/CL/pocl_hash.h
lib/CL/pocl_runtime_config.h
lib/CL/pocl_util.h

index 15cf97d905870e897b6e0c2adccb3d282201a798..6980e0eebd831e35ed1c2c78a2881fa62670c99d 100644 (file)
@@ -75,12 +75,14 @@ int pocl_cache_append_to_buildlog(cl_program  program,
 int pocl_cache_device_cachedir_exists(cl_program   program,
                                       unsigned device_i);
 
+POCL_EXPORT
 int pocl_cache_write_descriptor(cl_program   program,
                                 unsigned     device_i,
                                 const char*  kernel_name,
                                 const char*  content,
                                 size_t       size);
 
+POCL_EXPORT
 void pocl_cache_kernel_cachedir_path (char *kernel_cachedir_path,
                                       cl_program program, unsigned device_i,
                                       cl_kernel kernel, const char *append_str,
index 2030f1fd8715be56d544c6b78b47817e2e95e73b..1f8544eef6a4831974ffcc2f7474ef3310bd6a6b 100644 (file)
@@ -35,11 +35,13 @@ extern "C" {
 int pocl_rm_rf(const char* path);
 
 /* Make a directory, including all directories along path */
+POCL_EXPORT
 int pocl_mkdir_p(const char* path);
 
 /* Remove a file or empty directory */
 int pocl_remove(const char* path);
 
+POCL_EXPORT
 int pocl_rename(const char *oldpath, const char *newpath);
 
 POCL_EXPORT
@@ -67,6 +69,7 @@ int pocl_write_module(void *module, const char* path, int dont_rewrite);
 
 int pocl_mk_tempdir (char *output, const char *prefix);
 
+POCL_EXPORT
 int pocl_mk_tempname (char *output, const char *prefix, const char *suffix,
                       int *ret_fd);
 
index 63b3b13a23d0971ebde1642f4a730b93d14311b0..978d63b5aeff30f0add89b3155c2f747fe32c7c9 100644 (file)
@@ -128,7 +128,9 @@ POCL_EXPORT
 POCL_EXPORT
         extern void pocl_debug_print_header (const char * func, unsigned line,
                                              const char* filter, int filter_type);
+POCL_EXPORT
         extern void pocl_debug_measure_start (uint64_t* start);
+POCL_EXPORT
         extern void pocl_debug_measure_finish (uint64_t* start, uint64_t* finish,
                                                const char* msg,
                                                const char *func,
index a9ab939bf1d2e81847dc75ca29220d5d439ce1ca..a1f9a3c53491f0779fb77771b0c716d6bb95058b 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef POCL_HASH_H
 #define POCL_HASH_H
 
+#include "pocl_export.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -39,8 +41,11 @@ typedef struct {
 
 #define SHA1_DIGEST_SIZE 20
 
+POCL_EXPORT
 void pocl_SHA1_Init(SHA1_CTX* context);
+POCL_EXPORT
 void pocl_SHA1_Update(SHA1_CTX* context, const uint8_t* data, const size_t len);
+POCL_EXPORT
 void pocl_SHA1_Final(SHA1_CTX* context, uint8_t digest[SHA1_DIGEST_SIZE]);
 
 #ifdef __cplusplus
index 4f300f1dc5c61d381a232e545fc44dc82458c57d..639777f83e6a35ceb8267099d1441930a75a6ac8 100644 (file)
@@ -31,6 +31,7 @@
 extern "C" {
 #endif
 
+POCL_EXPORT
 int pocl_is_option_set(const char *key);
 POCL_EXPORT
 int pocl_get_int_option(const char *key, int default_value);
index 60930ad792b1926de632227feed0c008b0650ae4..170e7e26ce4774b26445f2c2cd0f11a9700d3b9c 100644 (file)
@@ -60,6 +60,7 @@ void pocl_install_sigfpe_handler ();
 void pocl_install_sigusr2_handler ();
 
 /* Finds the next highest power of two of the given value. */
+POCL_EXPORT
 size_t pocl_size_ceil2 (size_t x);
 uint64_t pocl_size_ceil2_64 (uint64_t x);