Skip to content

Commit 6a24c0a

Browse files
committed
Add linux/amd64 ncnn runtime and header
Add prebuilt NCNN runtime artifacts for linux/amd64: libncnn.so and libzima_ncnn_runtime.h, and update libzima_ncnn_runtime.so. Remove darwin/arm64 and linux/arm64 runtime binaries. Also add .DS_Store placeholders in builtin/ncnn and platform subfolders.
1 parent 55b6598 commit 6a24c0a

5 files changed

Lines changed: 91 additions & 0 deletions

File tree

-2.22 MB
Binary file not shown.
7.96 MB
Binary file not shown.
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/* Code generated by cmd/cgo; DO NOT EDIT. */
2+
3+
/* package github.com/IceWhaleTech/ZimaOS-Search/tools/ncnn_runtime_wrapper */
4+
5+
6+
#line 1 "cgo-builtin-export-prolog"
7+
8+
#include <stddef.h>
9+
10+
#ifndef GO_CGO_EXPORT_PROLOGUE_H
11+
#define GO_CGO_EXPORT_PROLOGUE_H
12+
13+
#ifndef GO_CGO_GOSTRING_TYPEDEF
14+
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15+
#endif
16+
17+
#endif
18+
19+
/* Start of preamble from import "C" comments. */
20+
21+
22+
#line 3 "main.go"
23+
24+
#include <stdint.h>
25+
#include <stdlib.h>
26+
27+
#line 1 "cgo-generated-wrapper"
28+
29+
30+
/* End of preamble from import "C" comments. */
31+
32+
33+
/* Start of boilerplate cgo prologue. */
34+
#line 1 "cgo-gcc-export-header-prolog"
35+
36+
#ifndef GO_CGO_PROLOGUE_H
37+
#define GO_CGO_PROLOGUE_H
38+
39+
typedef signed char GoInt8;
40+
typedef unsigned char GoUint8;
41+
typedef short GoInt16;
42+
typedef unsigned short GoUint16;
43+
typedef int GoInt32;
44+
typedef unsigned int GoUint32;
45+
typedef long long GoInt64;
46+
typedef unsigned long long GoUint64;
47+
typedef GoInt64 GoInt;
48+
typedef GoUint64 GoUint;
49+
typedef size_t GoUintptr;
50+
typedef float GoFloat32;
51+
typedef double GoFloat64;
52+
#ifdef _MSC_VER
53+
#include <complex.h>
54+
typedef _Fcomplex GoComplex64;
55+
typedef _Dcomplex GoComplex128;
56+
#else
57+
typedef float _Complex GoComplex64;
58+
typedef double _Complex GoComplex128;
59+
#endif
60+
61+
/*
62+
static assertion to make sure the file is being used on architecture
63+
at least with matching size of GoInt.
64+
*/
65+
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
66+
67+
#ifndef GO_CGO_GOSTRING_TYPEDEF
68+
typedef _GoString_ GoString;
69+
#endif
70+
typedef void *GoMap;
71+
typedef void *GoChan;
72+
typedef struct { void *t; void *v; } GoInterface;
73+
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
74+
75+
#endif
76+
77+
/* End of boilerplate cgo prologue. */
78+
79+
#ifdef __cplusplus
80+
extern "C" {
81+
#endif
82+
83+
extern size_t zima_ncnn_status_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
84+
extern size_t zima_ncnn_load_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
85+
extern size_t zima_ncnn_infer_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
86+
extern size_t zima_ncnn_unload_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
87+
extern size_t zima_ncnn_switch_backend_json_v1(char* req, size_t reqLen, char* out, size_t outCap);
88+
89+
#ifdef __cplusplus
90+
}
91+
#endif
1.84 MB
Binary file not shown.
-3.28 MB
Binary file not shown.

0 commit comments

Comments
 (0)