Skip to content

Commit 312eddb

Browse files
committed
Merge branch 'concedo_experimental' into FixSomeMess
2 parents 6f07850 + 3bd70d7 commit 312eddb

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

Makefile

+17-6
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,23 @@ endif
4242
#
4343

4444
# keep standard at C11 and C++11
45-
CFLAGS = -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -DNDEBUG -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
46-
CXXFLAGS = -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -DNDEBUG -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
45+
CFLAGS =
46+
CXXFLAGS =
47+
ifdef KCPP_DEBUG
48+
CFLAGS = -g -O0
49+
CXXFLAGS = -g -O0
50+
endif
51+
CFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
52+
CXXFLAGS += -I. -Iggml/include -Iggml/src -Iinclude -Isrc -I./common -I./include -I./include/CL -I./otherarch -I./otherarch/tools -I./otherarch/sdcpp -I./otherarch/sdcpp/thirdparty -I./include/vulkan -O3 -fno-finite-math-only -std=c++11 -fPIC -DLOG_DISABLE_LOGS -D_GNU_SOURCE -DGGML_USE_LLAMAFILE
53+
ifndef KCPP_DEBUG
54+
CFLAGS += -DNDEBUG -s
55+
CXXFLAGS += -DNDEBUG -s
56+
endif
57+
58+
#lets try enabling everything
59+
CFLAGS += -pthread -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
60+
CXXFLAGS += -pthread -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
61+
4762
LDFLAGS =
4863
FASTCFLAGS = $(subst -O3,-Ofast,$(CFLAGS))
4964
FASTCXXFLAGS = $(subst -O3,-Ofast,$(CXXFLAGS))
@@ -69,10 +84,6 @@ OBJS_FULL += ggml-alloc.o ggml-aarch64.o ggml-quants.o unicode.o unicode-data.o
6984
OBJS_SIMPLE += ggml-alloc.o ggml-aarch64.o ggml-quants_noavx2.o unicode.o unicode-data.o sgemm_noavx2.o common.o sampling.o grammar-parser.o
7085
OBJS_FAILSAFE += ggml-alloc.o ggml-aarch64.o ggml-quants_failsafe.o unicode.o unicode-data.o sgemm_failsafe.o common.o sampling.o grammar-parser.o
7186

72-
#lets try enabling everything
73-
CFLAGS += -pthread -s -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
74-
CXXFLAGS += -pthread -s -Wno-multichar -Wno-write-strings -Wno-deprecated -Wno-deprecated-declarations -Wno-unused-variable
75-
7687
# OS specific
7788
# TODO: support Windows
7889
ifeq ($(UNAME_S),Linux)

examples/llava/clip.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
11081108
}
11091109
}
11101110

1111-
clip_ctx * new_clip = new clip_ctx;
1111+
clip_ctx * new_clip = new clip_ctx{};
11121112

11131113
// update projector type
11141114
{

0 commit comments

Comments
 (0)