-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (34 loc) · 919 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: nontemporaltest cachestridetest alignreadtest cachetestnonpow2 cachetest simdreadtest rwporttest optest readtest generate asm bench test clean
all: nontemporaltest
nontemporaltest: asm generate
@go run ./cmd/nontemporaltest
cachestridetest: asm generate
@go run ./cmd/cachestridetest
alignreadtest: asm generate
@go run ./cmd/alignreadtest
cachetestnonpow2: asm generate
@go run ./cmd/cachetestnonpow2
cachetest: asm generate
@go run ./cmd/cachetest
simdreadtest: asm generate
@go run ./cmd/simdreadtest
rwporttest: asm
@go run ./cmd/rwporttest
optest: asm
@go run ./cmd/optest
readtest:
@go run ./cmd/readtest ./tmp/output.json
generate:
@go generate ./...
asm:
@nasm -f elf64 -o asm/loops.o asm/loops.asm
@ar q asm/libloops.a asm/loops.o
@rm asm/loops.o
bench:
@go test -bench=. ./...
test:
@go test -v ./...
clean:
@rm -f ./optest ./readtest
@rm -f ./asm/libloops.a ./asm/loops.o
@go clean