Revision d13bfa85191d5e46f8f6fed8c5d0810da81bb78f authored by Andrew Adams on 18 March 2024, 16:00:29 UTC, committed by Andrew Adams on 18 March 2024, 16:00:29 UTC
1 parent 59d6462
Makefile
include ../support/Makefile.inc
.PHONY: build clean test
build: $(BIN)/$(HL_TARGET)/filter
test: $(BIN)/$(HL_TARGET)/out.png
$(GENERATOR_BIN)/hist.generator: hist_generator.cpp $(GENERATOR_DEPS)
@mkdir -p $(@D)
$(CXX) $(CXXFLAGS) -g $(filter %.cpp,$^) -o $@ $(LIBHALIDE_LDFLAGS)
$(BIN)/%/hist.a: $(GENERATOR_BIN)/hist.generator
@mkdir -p $(@D)
$< -g hist -f hist -o $(BIN)/$* target=$*-no_runtime
$(BIN)/%/hist_auto_schedule.a: $(GENERATOR_BIN)/hist.generator
@mkdir -p $(@D)
$< -g hist -f hist_auto_schedule -o $(BIN)/$* target=$*-no_runtime autoscheduler=Mullapudi2016
$(BIN)/%/runtime.a: $(GENERATOR_BIN)/hist.generator
@mkdir -p $(@D)
$< -r runtime -o $(BIN)/$* target=$*
$(BIN)/%/filter: filter.cpp $(BIN)/%/hist.a $(BIN)/%/hist_auto_schedule.a $(BIN)/%/runtime.a
@mkdir -p $(@D)
$(CXX) $(CXXFLAGS) -I$(BIN)/$* -Wall -O3 $^ -o $@ $(LDFLAGS) $(IMAGE_IO_FLAGS) $(CUDA_LDFLAGS) $(OPENCL_LDFLAGS)
$(BIN)/%/out.png: $(BIN)/%/filter
$< ../images/rgba.png $(BIN)/$*/out.png
clean:
rm -rf $(BIN)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...