orca-zhang commited on
Commit
6760d18
·
verified ·
1 Parent(s): b429fed

Add zimaos ncnn runtime v2 linux builds

Browse files
.gitattributes CHANGED
@@ -41,3 +41,7 @@ runtime/darwin/arm64/libzima_ncnn_runtime.dylib filter=lfs diff=lfs merge=lfs -t
41
  runtime/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
42
  runtime/linux/amd64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
43
  runtime/linux/arm64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
41
  runtime/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
42
  runtime/linux/amd64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
43
  runtime/linux/arm64/libzima_ncnn_runtime.so filter=lfs diff=lfs merge=lfs -text
44
+ linux/amd64/libncnn.so filter=lfs diff=lfs merge=lfs -text
45
+ linux/amd64/libzima_ncnn_runtime_v2.so filter=lfs diff=lfs merge=lfs -text
46
+ linux/arm64/libncnn.so filter=lfs diff=lfs merge=lfs -text
47
+ linux/arm64/libzima_ncnn_runtime_v2.so filter=lfs diff=lfs merge=lfs -text
linux/amd64/libncnn.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:656a362f920033b1dee239609618d8b287b15500ad1075432887a904a0e6cf55
3
+ size 7938800
linux/amd64/libzima_ncnn_runtime_v2.h ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ extern size_t _GoStringLen(_GoString_ s);
16
+ extern const char *_GoStringPtr(_GoString_ s);
17
+ #endif
18
+
19
+ #endif
20
+
21
+ /* Start of preamble from import "C" comments. */
22
+
23
+
24
+ #line 3 "main.go"
25
+
26
+ #include <stdint.h>
27
+ #include <stdlib.h>
28
+
29
+ #line 1 "cgo-generated-wrapper"
30
+
31
+
32
+ /* End of preamble from import "C" comments. */
33
+
34
+
35
+ /* Start of boilerplate cgo prologue. */
36
+ #line 1 "cgo-gcc-export-header-prolog"
37
+
38
+ #ifndef GO_CGO_PROLOGUE_H
39
+ #define GO_CGO_PROLOGUE_H
40
+
41
+ typedef signed char GoInt8;
42
+ typedef unsigned char GoUint8;
43
+ typedef short GoInt16;
44
+ typedef unsigned short GoUint16;
45
+ typedef int GoInt32;
46
+ typedef unsigned int GoUint32;
47
+ typedef long long GoInt64;
48
+ typedef unsigned long long GoUint64;
49
+ typedef GoInt64 GoInt;
50
+ typedef GoUint64 GoUint;
51
+ typedef size_t GoUintptr;
52
+ typedef float GoFloat32;
53
+ typedef double GoFloat64;
54
+ #ifdef _MSC_VER
55
+ #if !defined(__cplusplus) || _MSVC_LANG <= 201402L
56
+ #include <complex.h>
57
+ typedef _Fcomplex GoComplex64;
58
+ typedef _Dcomplex GoComplex128;
59
+ #else
60
+ #include <complex>
61
+ typedef std::complex<float> GoComplex64;
62
+ typedef std::complex<double> GoComplex128;
63
+ #endif
64
+ #else
65
+ typedef float _Complex GoComplex64;
66
+ typedef double _Complex GoComplex128;
67
+ #endif
68
+
69
+ /*
70
+ static assertion to make sure the file is being used on architecture
71
+ at least with matching size of GoInt.
72
+ */
73
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
74
+
75
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
76
+ typedef _GoString_ GoString;
77
+ #endif
78
+ typedef void *GoMap;
79
+ typedef void *GoChan;
80
+ typedef struct { void *t; void *v; } GoInterface;
81
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
82
+
83
+ #endif
84
+
85
+ /* End of boilerplate cgo prologue. */
86
+
87
+ #ifdef __cplusplus
88
+ extern "C" {
89
+ #endif
90
+
91
+ extern size_t zima_ncnn_create_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
92
+ extern size_t zima_ncnn_destroy_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
93
+ extern size_t zima_ncnn_status_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
94
+ extern size_t zima_ncnn_load_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
95
+ extern size_t zima_ncnn_infer_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
96
+ extern size_t zima_ncnn_unload_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
97
+ extern size_t zima_ncnn_switch_backend_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
98
+
99
+ #ifdef __cplusplus
100
+ }
101
+ #endif
linux/amd64/libzima_ncnn_runtime_v2.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af500b6fabb133b26984d121a05876410ace48aa0d7f189df3150a0c9e185303
3
+ size 7425736
linux/arm64/libncnn.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69fa4805ee3e96699cf0e5d22d5d955bddef5ce9dd6072d96724db095a71f338
3
+ size 2658064
linux/arm64/libzima_ncnn_runtime_v2.h ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ extern size_t _GoStringLen(_GoString_ s);
16
+ extern const char *_GoStringPtr(_GoString_ s);
17
+ #endif
18
+
19
+ #endif
20
+
21
+ /* Start of preamble from import "C" comments. */
22
+
23
+
24
+ #line 3 "main.go"
25
+
26
+ #include <stdint.h>
27
+ #include <stdlib.h>
28
+
29
+ #line 1 "cgo-generated-wrapper"
30
+
31
+
32
+ /* End of preamble from import "C" comments. */
33
+
34
+
35
+ /* Start of boilerplate cgo prologue. */
36
+ #line 1 "cgo-gcc-export-header-prolog"
37
+
38
+ #ifndef GO_CGO_PROLOGUE_H
39
+ #define GO_CGO_PROLOGUE_H
40
+
41
+ typedef signed char GoInt8;
42
+ typedef unsigned char GoUint8;
43
+ typedef short GoInt16;
44
+ typedef unsigned short GoUint16;
45
+ typedef int GoInt32;
46
+ typedef unsigned int GoUint32;
47
+ typedef long long GoInt64;
48
+ typedef unsigned long long GoUint64;
49
+ typedef GoInt64 GoInt;
50
+ typedef GoUint64 GoUint;
51
+ typedef size_t GoUintptr;
52
+ typedef float GoFloat32;
53
+ typedef double GoFloat64;
54
+ #ifdef _MSC_VER
55
+ #if !defined(__cplusplus) || _MSVC_LANG <= 201402L
56
+ #include <complex.h>
57
+ typedef _Fcomplex GoComplex64;
58
+ typedef _Dcomplex GoComplex128;
59
+ #else
60
+ #include <complex>
61
+ typedef std::complex<float> GoComplex64;
62
+ typedef std::complex<double> GoComplex128;
63
+ #endif
64
+ #else
65
+ typedef float _Complex GoComplex64;
66
+ typedef double _Complex GoComplex128;
67
+ #endif
68
+
69
+ /*
70
+ static assertion to make sure the file is being used on architecture
71
+ at least with matching size of GoInt.
72
+ */
73
+ typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
74
+
75
+ #ifndef GO_CGO_GOSTRING_TYPEDEF
76
+ typedef _GoString_ GoString;
77
+ #endif
78
+ typedef void *GoMap;
79
+ typedef void *GoChan;
80
+ typedef struct { void *t; void *v; } GoInterface;
81
+ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
82
+
83
+ #endif
84
+
85
+ /* End of boilerplate cgo prologue. */
86
+
87
+ #ifdef __cplusplus
88
+ extern "C" {
89
+ #endif
90
+
91
+ extern size_t zima_ncnn_create_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
92
+ extern size_t zima_ncnn_destroy_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
93
+ extern size_t zima_ncnn_status_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
94
+ extern size_t zima_ncnn_load_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
95
+ extern size_t zima_ncnn_infer_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
96
+ extern size_t zima_ncnn_unload_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
97
+ extern size_t zima_ncnn_switch_backend_json_v2(char* req, size_t reqLen, char* out, size_t outCap);
98
+
99
+ #ifdef __cplusplus
100
+ }
101
+ #endif
linux/arm64/libzima_ncnn_runtime_v2.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41ff54e78d6f9af21694769a105af4ffe4e112e8e2d0970166e63adafeb9c440
3
+ size 7269376