mirror of https://github.com/maderix/ANE.git
21 lines
597 B
Makefile
21 lines
597 B
Makefile
CC = xcrun clang
|
|
CFLAGS = -O2 -Wall -Wno-deprecated-declarations -fobjc-arc
|
|
FRAMEWORKS = -framework Foundation -framework CoreML -framework IOSurface
|
|
LDFLAGS = $(FRAMEWORKS) -ldl
|
|
|
|
HEADERS_LARGE = stories_config.h stories_io.h stories_mil.h stories_cpu_ops.h
|
|
|
|
train: train.m ane_runtime.h ane_mil_gen.h model.h forward.h backward.h
|
|
$(CC) $(CFLAGS) -o $@ train.m $(LDFLAGS)
|
|
|
|
train_large: train_large.m $(HEADERS_LARGE)
|
|
$(CC) $(CFLAGS) -o $@ train_large.m $(LDFLAGS) -framework Accelerate
|
|
|
|
tokenize:
|
|
python3 tokenize.py
|
|
|
|
clean:
|
|
rm -f train train_large
|
|
|
|
.PHONY: clean tokenize
|