Skip to content

Commit a322a7a

Browse files
committed
make : add some missing build targets
1 parent c365cc4 commit a322a7a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define the default target now so that it is always the first target
2-
BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch convert-llama2c-to-ggml simple save-load-state server embd-input-test gguf llama-bench baby-llama beam-search speculative tests/test-c.o
2+
BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot q8dot train-text-from-scratch convert-llama2c-to-ggml simple save-load-state server embd-input-test gguf llama-bench baby-llama beam-search speculative benchmark-matmult tests/test-c.o
33

44
# Binaries only useful for tests
55
TEST_TARGETS = tests/test-llama-grammar tests/test-grammar-parser tests/test-double-float tests/test-grad0 tests/test-opt tests/test-quantize-fns tests/test-quantize-perf tests/test-sampling tests/test-tokenizer-0-llama tests/test-tokenizer-0-falcon tests/test-tokenizer-1-llama
@@ -571,11 +571,18 @@ tests: $(TEST_TARGETS)
571571

572572
benchmark-matmult: examples/benchmark/benchmark-matmult.cpp build-info.h ggml.o $(OBJS)
573573
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
574+
575+
run-benchmark-matmult: benchmark-matmult
574576
./$@
575577

578+
.PHONY: run-benchmark-matmult
579+
576580
vdot: pocs/vdot/vdot.cpp ggml.o $(OBJS)
577581
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
578582

583+
q8dot: pocs/vdot/q8dot.cpp ggml.o $(OBJS)
584+
$(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
585+
579586
tests/test-llama-grammar: tests/test-llama-grammar.cpp build-info.h ggml.o common.o grammar-parser.o $(OBJS)
580587
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
581588

0 commit comments

Comments
 (0)