修改函数定义

This commit is contained in:
lundi001 2024-03-06 02:48:24 +00:00
parent c756bd28fe
commit 45ce5b7169
2 changed files with 15 additions and 3 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
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 void dump_vendor_icd
-- root <zhouningyi@smart-core.cn> Wed, 06 Mar 2024 02:45:39 +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);
// }
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;