From 5c3ba45597f4b5a4d27dda58ff7671ca386ae689 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Fri, 3 Dec 2021 10:36:27 +0100 Subject: [PATCH] [PATCH 79/90] add POCL_EXPORT to additional symbols needed by the tce device Gbp-Pq: Name 0079-add-POCL_EXPORT-to-additional-symbols-needed-by-the-.patch --- include/pocl_cache.h | 2 ++ include/pocl_file_util.h | 3 +++ lib/CL/pocl_debug.h | 2 ++ lib/CL/pocl_hash.h | 5 +++++ lib/CL/pocl_runtime_config.h | 1 + lib/CL/pocl_util.h | 1 + 6 files changed, 14 insertions(+) diff --git a/include/pocl_cache.h b/include/pocl_cache.h index 15cf97d..6980e0e 100644 --- a/include/pocl_cache.h +++ b/include/pocl_cache.h @@ -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, diff --git a/include/pocl_file_util.h b/include/pocl_file_util.h index 2030f1f..1f8544e 100644 --- a/include/pocl_file_util.h +++ b/include/pocl_file_util.h @@ -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); diff --git a/lib/CL/pocl_debug.h b/lib/CL/pocl_debug.h index 63b3b13..978d63b 100644 --- a/lib/CL/pocl_debug.h +++ b/lib/CL/pocl_debug.h @@ -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, diff --git a/lib/CL/pocl_hash.h b/lib/CL/pocl_hash.h index a9ab939..a1f9a3c 100644 --- a/lib/CL/pocl_hash.h +++ b/lib/CL/pocl_hash.h @@ -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 diff --git a/lib/CL/pocl_runtime_config.h b/lib/CL/pocl_runtime_config.h index 4f300f1..639777f 100644 --- a/lib/CL/pocl_runtime_config.h +++ b/lib/CL/pocl_runtime_config.h @@ -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); diff --git a/lib/CL/pocl_util.h b/lib/CL/pocl_util.h index 60930ad..170e7e2 100644 --- a/lib/CL/pocl_util.h +++ b/lib/CL/pocl_util.h @@ -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); -- 2.30.2