aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-10 08:57:04 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-14 08:27:03 +0200
commit7eaec3a6d01bd598215edd4d6b466f0bf8cec24a (patch)
tree4da6befc90767fcfae70a6a7cd6737915aa3ff30 /Makefile
parent6045c430b5f03169e74c9bae77ac5c7992ae7fb0 (diff)
downloadffwd-7eaec3a6d01bd598215edd4d6b466f0bf8cec24a.tar.gz
ffwd-7eaec3a6d01bd598215edd4d6b466f0bf8cec24a.zip
tests: make safetensors and bf16-model tests hermetic, join make test
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8752fe6..7dd1c9b 100644
--- a/Makefile
+++ b/Makefile
@@ -164,6 +164,13 @@ test:
$(CC) -Wall -Wextra -O2 $(TEST_BLAS_CFLAGS) -I. -o tests/test_kernels_blas \
tests/test_kernels.c $(KERNEL_SRCS) -lm -lpthread $(TEST_BLAS_LDFLAGS)
./tests/test_kernels_blas
+ $(CC) -Wall -Wextra -O2 -I. -o tests/test_safetensors \
+ tests/test_safetensors.c qwen_safetensors.c
+ ./tests/test_safetensors
+ $(CC) -Wall -Wextra -O2 -I. -o tests/test_bf16_model \
+ tests/test_bf16_model.c embed.c qwen_safetensors.c $(KERNEL_SRCS) \
+ -lm -lpthread
+ ./tests/test_bf16_model
bench-tokenizer:
$(CC) -Wall -Wextra -O3 -march=native -I. -o bench/bench_tokenizer \
@@ -237,4 +244,5 @@ deps/ae/%.o: deps/ae/%.c deps/ae/ae.h deps/ae/anet.h deps/ae/monotonic.h
clean:
rm -f $(OBJS) embed_mlx.o embed_cuda.o embed_cli.o embed_server.o \
$(TARGET) $(SERVER_TARGET) $(LIB) libpplxembed.dylib libpplxembed.so \
- tests/test_kernels_generic tests/test_kernels_blas
+ tests/test_kernels_generic tests/test_kernels_blas \
+ tests/test_safetensors tests/test_bf16_model bench/bench_tokenizer