Skip to content

Commit ec870de

Browse files
committed
ggml : initial ARM_NEON 2x F16 Q4_0 implementation
1 parent 69b7402 commit ec870de

File tree

3 files changed

+244
-112
lines changed

3 files changed

+244
-112
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@ endif
3131
#
3232

3333
# keep standard at C11 and C++11
34-
CFLAGS = -I. -O3 -DNDEBUG -std=c11 -fPIC
35-
CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC
34+
CFLAGS = -I. -O3 -std=c11 -fPIC
35+
CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC
3636
LDFLAGS =
3737

38+
ifndef LLAMA_NO_NDEBUG
39+
CFLAGS += -DNDEBUG
40+
CXXFLAGS += -DNDEBUG
41+
endif
42+
3843
# warnings
3944
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-unused-function
4045
CXXFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar

examples/quantize-stats/quantize-stats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int main(int argc, char ** argv) {
221221
break;
222222
}
223223
int j;
224-
for (j = 0; j < GGML_TYPE_COUNT && strcmp(argv[i], ggml_type_name((ggml_type) i)) != 0; j++) {
224+
for (j = 0; j < GGML_TYPE_COUNT && strcmp(argv[i], ggml_type_name((ggml_type) j)) != 0; j++) {
225225
// find match
226226
}
227227
if (j < GGML_TYPE_COUNT) {

0 commit comments

Comments
 (0)