aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-12 05:15:26 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-14 08:27:10 +0200
commit1046ba2cce4c62f6f416cfc622eca2c7c4959108 (patch)
treeae4bc24136497da98859892229a31a7652af5b64
parent9eb4b29f2f8d29b93bdd8a3224a2b0d9143d894f (diff)
downloadffwd-1046ba2cce4c62f6f416cfc622eca2c7c4959108.tar.gz
ffwd-1046ba2cce4c62f6f416cfc622eca2c7c4959108.zip
build: add test-bf16 and test-safetensors targets to Makefile
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 76ee623..a0cc769 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ SHARED_LIB = libembed.so
SHARED_FLAGS = -shared
endif
-.PHONY: all cpu metal cuda test coverage bench bench-model bench-tokenizer \
+.PHONY: all cpu metal cuda test test-bf16 coverage bench bench-model bench-tokenizer \
debug clean help
all: help
@@ -193,6 +193,17 @@ test:
-lm -lpthread $(TEST_BLAS_LDFLAGS) $(CJSON_LDFLAGS)
./tests/test_server
+test-bf16:
+ $(CC) $(TEST_CC_FLAGS) -o tests/test_bf16_model \
+ $(TEST_BF16_SRCS) -lm -lpthread
+ ./tests/test_bf16_model
+
+test-safetensors:
+ $(CC) $(TEST_CC_FLAGS) -o tests/test_safetensors \
+ $(TEST_SAFETENSORS_SRCS) -lm -lpthread
+ ./tests/test_safetensors
+
+
# =============================================================================
# Test-suite line coverage (requires clang + llvm-cov/llvm-profdata. Writes a
# per-file text summary to stdout and an HTML report to coverage/html/index.html.)