-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (28 loc) · 1.04 KB
/
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
35
36
DOWNLOAD=wget -P $(1) -nc $(2)
ANNBENCH_DATA=./test-data
TEST=go test -v -cover $(1) -count=1 -timeout=24h $(2) -run $(3)
.SILENT:
download-annbench-data:
mkdir -p $(ANNBENCH_DATA)
echo "=== Downloading fashion mnist dataset... ==="
$(call DOWNLOAD,$(ANNBENCH_DATA),http://ann-benchmarks.com/fashion-mnist-784-euclidean.hdf5)
echo "=== Downloading NY times dataset... ==="
$(call DOWNLOAD,$(ANNBENCH_DATA),http://ann-benchmarks.com/nytimes-256-angular.hdf5)
echo "=== Downloading SIFT dataset... ==="
$(call DOWNLOAD,$(ANNBENCH_DATA),http://ann-benchmarks.com/sift-128-euclidean.hdf5)
echo "=== Downloading Glove dataset... ==="
$(call DOWNLOAD,$(ANNBENCH_DATA),http://ann-benchmarks.com/glove-200-angular.hdf5)
echo "=== Downloading complete ==="
.ONESHELL:
.SHELLFLAGS=-e -c
test:
$(call TEST,-race,./lsh,Test*)
$(call TEST,-race,./store/...,Test*)
.PHONY: annbench
annbench:
$(call TEST,,./annbench,$$test)
install-hdf5:
sudo apt-get install libhdf5-serial-dev
install-go-deps:
go get -t -u ./...
install-deps: install-hdf5 install-go-deps