!1 在rv64g架构中,代码中函数未定义,导致链接器无法解析该函数

Merge pull request !1 from lundi001/openkylin/yangtze
This commit is contained in:
周淦清 2024-03-06 06:24:24 +00:00 committed by Gitee
commit 367fe300e1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 16 additions and 3 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ocl-icd (2.2.11-ok2) yangtze; urgency=medium
* In the ocl_icd_loader.c file, change the function inline void
dump_vendor_icd on line 56 to static inline void dump_vendor_icd
-- root <zhouningyi@smart-core.cn> Wed, 06 Mar 2024 05:34:58 +0000
ocl-icd (2.2.11-ok1) yangtze; urgency=medium
* Build for openKylin.

View File

@ -53,11 +53,17 @@ int debug_ocl_icd_mask=0;
typedef __typeof__(clGetPlatformInfo) *clGetPlatformInfo_fn;
inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
debug(D_DUMP, "%s %p={ num=%i, handle=%p, f=%p}\n", info,
v, v->num_platforms, v->dl_handle, v->ext_fn_ptr);
// inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
// debug(D_DUMP, "%s %p={ num=%i, handle=%p, f=%p}\n", info,
// v, v->num_platforms, v->dl_handle, v->ext_fn_ptr);
// }
static inline void dump_vendor_icd(const char* info, const struct vendor_icd *v) {
debug(D_DUMP, "%s %p={ num=%i, handle=%p, f=%p}\n", info,
v, v->num_platforms, v->dl_handle, v->ext_fn_ptr);
}
struct vendor_icd *_icds=NULL;
struct platform_icd *_picds=NULL;
static cl_uint _num_icds = 0;