-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 844 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 844 Bytes
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
BUILD_DIR := build
BINARY := $(BUILD_DIR)/cpp/characterization
RESULTS := cpp/results
SCRIPTS := cpp/scripts
NPROC := $(shell sysctl -n hw.ncpu 2>/dev/null || nproc)
.PHONY: build run plot cms-point-query clean
# Build the C++ binary
build:
@mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR) && cmake .. && make -j$(NPROC)
# Run CMS point query profile and generate plot
cms-point-query: build
$(BINARY) cms-point-query > $(RESULTS)/cms_point_query.tsv
uv run $(SCRIPTS)/plot_cms_point_query.py $(RESULTS)/cms_point_query.tsv cms_point_query_error.svg
# Just rebuild and run (no plot)
run: build
$(BINARY) cms-point-query > $(RESULTS)/cms_point_query.tsv
# Just regenerate the plot from existing TSV
plot:
uv run $(SCRIPTS)/plot_cms_point_query.py $(RESULTS)/cms_point_query.tsv cms_point_query_error.svg
clean:
rm -rf $(BUILD_DIR)