From 1046ba2cce4c62f6f416cfc622eca2c7c4959108 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Fri, 12 Jun 2026 05:15:26 +0200 Subject: build: add test-bf16 and test-safetensors targets to Makefile --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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.) -- cgit v1.3.1