Skip to content

Commit

Permalink
ggml: add preprocessing target for ggml.c
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bevenius <[email protected]>
  • Loading branch information
danbev committed Jul 22, 2024
1 parent 5694c25 commit 2d25321
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fundamentals/ggml/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ pre-quants: CFLAGS += -Iggml/src -Iggml/include/ggml
pre-quants:
$(CC) -E $(CFLAGS) $(LDFLAGS) -o ${BINDIR}/quants.pre $(SRCDIR)/quants.c

.PHONY: pre-ggml.c
pre-ggml.c: CFLAGS += -Iggml/src -Iggml/include/ggml
pre-ggml.c:
$(CC) -E $(CFLAGS) $(LDFLAGS) -o ${BINDIR}/ggml.c.pre ggml/src/ggml.c

#.PHONY: backend-cuda
backend-cuda: CUDA_FLAGS := -L${CUDA_DIR} -lcuda -lcublas -lculibos -lcudart -lcublasLt
backend-cuda: CC = g++
Expand Down

0 comments on commit 2d25321

Please sign in to comment.