Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
bec40d16
Commit
bec40d16
authored
11 months ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Fix log assertions ggml
parent
1331b1c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
native/jni/Android.mk
+2
-2
2 additions, 2 deletions
native/jni/Android.mk
native/jni/src/ggml/ggml.h
+2
-5
2 additions, 5 deletions
native/jni/src/ggml/ggml.h
with
4 additions
and
7 deletions
native/jni/Android.mk
+
2
−
2
View file @
bec40d16
...
...
@@ -85,13 +85,13 @@ include $(CLEAR_VARS)
# All code in LOCAL_WHOLE_STATIC_LIBRARIES will be built into this shared library.
LOCAL_WHOLE_STATIC_LIBRARIES
:=
libjni_latinime_common_static
LOCAL_LDFLAGS
+=
-llog
ifeq
($(FLAG_DO_PROFILE), true)
$(
warning
Making profiling version of native library
)
LOCAL_LDFLAGS
+=
-llog
else
# FLAG_DO_PROFILE
ifeq
($(FLAG_DBG), true)
$(
warning
Making debug version of native library
)
LOCAL_LDFLAGS
+=
-llog
endif
# FLAG_DBG
endif
# FLAG_DO_PROFILE
...
...
This diff is collapsed.
Click to expand it.
native/jni/src/ggml/ggml.h
+
2
−
5
View file @
bec40d16
...
...
@@ -207,9 +207,6 @@
#include
<stdint.h>
#include
<stddef.h>
#include
<stdbool.h>
#include
<android/log.h>
#define GAKLOGE(fmt, ...) __android_log_print(ANDROID_LOG_ERROR, "GGML", fmt, ##__VA_ARGS__)
#define GAKLOGI(fmt, ...) __android_log_print(ANDROID_LOG_INFO, "GGML", fmt, ##__VA_ARGS__)
#define GGML_FILE_MAGIC 0x67676d6c // "ggml"
#define GGML_FILE_VERSION 1
...
...
@@ -244,11 +241,11 @@
#define GGML_PAD(x, n) (((x) + (n) - 1) & ~((n) - 1))
#include
<android/log.h>
#define GGML_ASSERT(x) \
do { \
if (!(x)) { \
GAKLOGE("GGML_ASSERT: %s:%d: %s\n", __FILE__, __LINE__, #x); \
ggml_print_backtrace(); \
__android_log_assert("", "GGML_ASSERT: ", "%s:%d: %s\n", __FILE__, __LINE__, #x); \
exit(1); \
} \
} while (0)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment